DamageActorValue - Actor

Member of: Actor Script

Applies damage to the specified actor value on this actor.

SyntaxEdit

Function DamageActorValue(string asValueName, float afDamage) native
Function DamageAV(string asValueName, float afDamage)
  DamageActorValue(asValueName, afDamage)
EndFunction

ParametersEdit

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

Return ValueEdit

None.

ExamplesEdit

; Damage the player's health 10 points
Game.GetPlayer().DamageActorValue("Health", 10.0)


; Damage Bob's health 5 points
Actor Bob = Bob_Alias.GetReference() As Actor
Bob.DamageAV("Health", 5.0)

NotesEdit

  • This function modifies the current value as opposed to the base value.
  • Negative numbers will be converted to positive so -100 and 100 will have the same effect.

See AlsoEdit