From CryWiki
Flowgraph Walkthrough
Assuming you've stopped the automatic regeneration of the players health and energy, this will add values to the current levels on a trigger, for example a custom pickup object. Currently this is using a keypress to simulate this trigger, so when you trigger this, it uses the Math:Add module to add 50 to the current players health (from the Game:ActorGetHealth and Game:ActorSetHealth). The energy much the same way, except the Nanosuit module is used and an Interpol module. Another Math module adds 50 to the energy. We're using the Interpol so we can use our trigger to set it.
Flowgraph Image
Preview of Set player energy and health from a trigger.
|
|
|
About this Sample
Name
- Set player energy and health from a trigger
Created by
- p5ymon
Compatible with Multiplayer
- No
Description
- Sets the player energy and health from a trigger, for example a custom pickup
|
|
» Discuss this sample...
» View other Flowgraph Samples
» Return to Crysis Modding Code Samples