ModActorValue - Actor

From the CreationKit Wiki
Revision as of 13:24, 25 October 2011 by imported>Jlundin (→‎Syntax)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Modifies the specified actor value on the actor.

Syntax

Function ModActorValue(string asValueName, float afAmount) native
Function ModAV(string asValueName, float afAmount)

Parameters

  • asValueName: The name of the actor value to modify. Actor Value List
  • afAmount: How much to modify the value by.

Return Value

None.

Examples

; Modify the player's current health actor value by 10
Game.GetPlayer().ModActorValue("health", 10)


; Modify Jake's current health actor value by -5
Actor Jake= Jake_Alias.GetReference() as Actor
Jake.ModAV("Health", -5)

See Also