Difference between revisions of "GetEquippedSpell - Actor"

479 bytes added ,  12:08, 27 March 2014
Added example for "Other"
imported>Sagitarius22
imported>Enter 77
(Added example for "Other")
 
(2 intermediate revisions by one other user not shown)
Line 27: Line 27:
   Debug.Trace("Bob has fireball in his left hand")
   Debug.Trace("Bob has fireball in his left hand")
endIf
endIf
</source>
<br>
<source lang="papyrus">
; Does Bob have a Greater Power equipped that takes up the Voice slot?
if (Bob.GetEquippedSpell(2) == GreaterPowerProperty)
  Debug.Trace("Bob has a Greater Power equipped as a Shout")
endIf
</source>
<br>
<source lang="papyrus">
;To get the equipped spell that requires both hands:
if (PlayerRef.GetEquippedSpell(0) && PlayerRef.GetEquippedSpell(1) == LightningStormProperty)
  Debug.Trace("Player has Thunderbolt in both hands.")
endif
</source>
</source>


Anonymous user