Difference between revisions of "GetEquippedSpell - Actor"
Jump to navigation
Jump to search
imported>Rhavlovick m (1 revision: Clobber re-import by Henning) |
imported>Sagitarius22 m (→See Also) |
||
Line 32: | Line 32: | ||
*[[Actor Script]] | *[[Actor Script]] | ||
*[[EquipSpell - Actor]] | *[[EquipSpell - Actor]] | ||
*[[UnequipSpell - Actor]] |
Revision as of 04:21, 19 March 2012
Member of: Actor Script
Gets the spell the actor currently has equipped in the specified source.
Syntax
Spell Function GetEquippedSpell(int aiSource) native
Parameters
- aiSource: The source to get the spell from.
- One of the following values is acceptable:
- 0: Left hand
- 1: Right hand
- 2: Other
- 3: Instant
- One of the following values is acceptable:
Return Value
The spell currently equipped in the specified source.
Examples
; Does Bob have fireball in his left hand?
if (Bob.GetEquippedSpell(0) == FireballProperty)
Debug.Trace("Bob has fireball in his left hand")
endIf