ArcheType Entity reset and moved back to original location

From CryWiki

Jump to: navigation, search


Flowgraph Walkthrough

First thing to do is store the entities original rotation and location at game start. This is exactly what the Start and the two String:Setstring modules do. They are Set from the Start module. The top String module reads the entity's Pos output for it's current location. The lower one reads the Rotate to get the current rotation angles. Using the Explode output from the entity:DestroyableObject (right click on the barrel in the editor window, come back to the flow graph window right click and choose: Add Selected Entity), we start a timer from the Time:Delay. This then goes to two other String:Setstring modules that write the original stored values we did at the start, back into the Pos and Rotate in the Entity:EntityPos module.


Flowgraph Image

Preview of Archetype Entity reset and moved back to it's original location.
Preview of Archetype Entity reset and moved back to it's original location.

   

About this Sample

Name

Archetype Entity reset and moved back to it's original location

Created by

p5ymon

Compatible with Multiplayer

No

Description

This will reset a destroyable object, such as an explodable barrel, and move it back to it's original location, after it explodes.




» Discuss this sample...

» View other Flowgraph Samples

» Return to Crysis Modding Code Samples

Personal tools