User Tools

Site Tools


hpl3:game:scripting:user_modules:attack_meter

Link to this comparison view

hpl3:game:scripting:user_modules:attack_meter [2015/09/16 11:12]
ian.thomas created
hpl3:game:scripting:user_modules:attack_meter [2015/09/16 13:39] (current)
ian.thomas
Line 4: Line 4:
  
 The attack meter module is used to tell the player that they are in danger and, if they don't escape the danger in time, applies damage to them, knocks them down and kills them. It's used by AI agents, and also for when (for example) the player jumps off a cliff. The attack meter module is used to tell the player that they are in danger and, if they don't escape the danger in time, applies damage to them, knocks them down and kills them. It's used by AI agents, and also for when (for example) the player jumps off a cliff.
 +
 +===== Important Functions =====
 +
 +==== AttackMeter_AddInstance ====
 +Adds a given object as a source of damage that's about the hurt the player.
 +
 +==== AttackMeter_RemoveInstance ====
 +Removes a given object as a source of damage.
 +
 +==== AttackMeter_AutoDamage ====
 +Automatically damages the player after a set time (useful for death from the environment/​falling etc.)
 +
 +==== AttackMeter_SetCustomDamageCallback ====
 +Set a custom callback to be called instead of the built-in damage effects.
 +
 +==== AttackMeter_SetAfterDamageCallback ====
 +Set a custom callback to be called after the normal damage effects are applied.
hpl3/game/scripting/user_modules/attack_meter.1442401934.txt.gz ยท Last modified: 2015/09/16 11:12 by ian.thomas