DamageValue - ObjectReference

Member of: ObjectReference Script

Applies damage to the specified Actor Value on this Object Reference.

SyntaxEdit

Function DamageValue(ActorValue akAV, float afDamage) native

ParametersEdit

  • akAV: The Actor Value to damage. Actor Value List
  • afDamage: The amount of damage to apply to the actor value.

Return ValueEdit

None.

ExamplesEdit

ActorValue property HealthAV
; Damage the player's health 10 points
Game.GetPlayer().DamageValue(HealthAV, 10)


ActorValue property HealthAV
; Damage Bob's health 5 points
Actor Bob = Bob_Alias.GetReference() as Actor
Bob.DamageValue(HealthAV, 5)

See AlsoEdit