SetValue - ObjectReference

Revision as of 10:10, 4 October 2013 by imported>DarkruneDK (→‎See Also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ObjectReference Script

Sets the base value specified Actor Value on the Object Reference to the passed-in value. Any modifiers are left intact.

Syntax

Function SetValue(ActorValue akAV, float afValue) native

Parameters

  • akAV: The Actor Value to set the value of. Actor Value
  • afValue: What value to set the actor value to.

Return Value

None.

Examples

ActorValue property HealthAV
; Set the player's health actor value to 50
Game.GetPlayer().SetValue(HealthAV, 50)


ActorValue property HealthAV
; Set Nancy's current health actor value
Nancy.SetValue(HealthAV, 20)

See Also