Difference between revisions of "ModActorValue - Actor"

Jump to navigation Jump to search
6 bytes added ,  12:38, 8 October 2012
m
→‎Examples: Floatified float parameters in examples
imported>Jlundin
 
imported>JustinOther
m (→‎Examples: Floatified float parameters in examples)
Line 21: Line 21:
<source lang="papyrus">
<source lang="papyrus">
; Modify the player's current health actor value by 10
; Modify the player's current health actor value by 10
Game.GetPlayer().ModActorValue("health", 10)
Game.GetPlayer().ModActorValue("health", 10.0)
</source>
</source>
<br/>
<br/>
<source lang="papyrus">
<source lang="papyrus">
; Modify Jake's current health actor value by -5
; Modify Jake's current health actor value by -5.0
Actor Jake= Jake_Alias.GetReference() as Actor
Actor Jake= Jake_Alias.GetReference() as Actor
Jake.ModAV("Health", -5)
Jake.ModAV("Health", -5.0)
</source>
</source>


Anonymous user

Navigation menu