Wednesday, September 22, 2010

Three FlowGraph Nodes

Make AI Walk Towards Tag Point and Do Action:
This tutorial is from http://www.veoh.com/search/videos/q/sandbox/offset/40/searchId/9e96e75bb22461d76d60e24aa9dd1b70#watch%3Dv17308205SRsWdN2E (accessed 22/9/10)
Here are some screenshots of the flowgraphs I created. (THIS NODE IS NOT ONE I AM CONSIDERING, IT WAS JUST TO START OFF WITH FLOWGRAPHS SO IS NOT INCLUDED IN MY 3 CHOSEN ONES!, AND WILL NOT BE ANALYSED BY S.W.A.T)
For my action I made the AI walk to the tag point and Salute.
This one was the new AI action flowgraph:

This one was the one that is connected to the AI itself:


This is a screenshot of what the set-up looks like in the editor:


This video shows the result of the flowgraphs together:





Light Turn On When Player Gets Close, and Then Turn Off:
Here is a screenshot of the flowgraph I used for this:
I used the Proximity Trigger so that when the player is close to the light, the light will turn on, and when the player is not close anymore, the light will turn off again after 1 second.



Here is a screenshot of what this set-up looks like in the editor:
I used a custom model for this example as when I was first testing out if the flowgraph was working it was hard to see if the light was turning on because you could only see a small change on the terrain floor.





Spawn Entity as Player Moves Around:

I had to download the plugin system for Crysis to get this node (Entity: SpawnArchetype). The flowgraph shown below depicts the node working so that when the game starts, every 0.05 seconds the position of the local player is checked and a chosen archetype is spawned in the position of the player (in this case I chose bananas).

Here is a video of the results of this flowgraph. I plan on investigating the possibilities of this flowgraph in more detail for the assignment.



Scale Entity as AI Moves Around It:
For this flowgraph I used the Entity:EntityPos node for my flowgraph in particular as this allowed me to use the scale input for scaling the basic entity as the AI moves around. This video shows my progress on testing scaling when working with AIs and entities. I had planned to expand on this and use this particular node in my final assignment. However, I am now planning on spawning objects instead.
I got the flowgraph from this blog in my tutorial group: http://terrencewong2423.blogspot.com/ (thank you!). I am interested in finding out more about this node and how I can use scaling in my assignment.
Here is my flowgraph for this node:



No comments:

Post a Comment