Difference between revisions of "DamageActorValue - Actor"
Jump to navigation
Jump to search
m
→Examples: Floatified afDamage
imported>Jlundin (→Syntax) |
imported>JustinOther m (→Examples: Floatified afDamage) |
||
Line 21: | Line 21: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Damage the player's health 10 points | ; Damage the player's health 10 points | ||
Game.GetPlayer().DamageActorValue(" | Game.GetPlayer().DamageActorValue("Health", 10.0) | ||
</source> | </source> | ||
<br/> | <br/> | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Damage Bob's health 5 points | ; Damage Bob's health 5 points | ||
Actor Bob = Bob_Alias.GetReference() | Actor Bob = Bob_Alias.GetReference() As Actor | ||
Bob.DamageAV("Health", 5) | Bob.DamageAV("Health", 5.0) | ||
</source> | </source> | ||