From CryWiki
Flowgraph Walkthrough
Using a Time:Delay and the Start module to trigger the Random modules we're generating two random numbers every 5 seconds. This are then used to set X and Y coordinated in the Vec3:ToVec3 module. Z is fixed here to keep it a certain distance in the air. This changes the "pos" input on the Entity:EntityPos module to move the selected entity. The random modules have limits (in this cae -1000 to 1000) which is used here to define the region within which the entity will move. This example is changing an AI tag point with interesting results :)
There is a spurious module in this example: the Logic:Gate module is not needed and can be removed.
Flowgraph Image
Preview of Random Entity Move.
|
|
|
About this Sample
Name
- Random Entity Move
Created by
- p5ymon
Compatible with Multiplayer
- No
Description
- Randomly moves an entity around
|
|
» Discuss this sample...
» View other Flowgraph Samples
» Return to Crysis Modding Code Samples