Difference between revisions of "Cast - Spell"

131 bytes added ,  05:41, 27 December 2013
Added example.
imported>Jbezorg
imported>Terra Nova
(Added example.)
Line 10: Line 10:
Function Cast(ObjectReference akSource, ObjectReference akTarget = None) native
Function Cast(ObjectReference akSource, ObjectReference akTarget = None) native
</source>
</source>
 
== Examples ==
<source lang="papyrus">
mySpell.cast(myActivator, playerRef)
; myActivator has cast mySpell on the player!
</source>
== Parameters ==
== Parameters ==
*akSource: The [[ObjectReference Script|ObjectReference]] from which to cast the spell.  The source must be able to cast this spell (testings seem to show anything will work, regardless whether they have the spell or not).
*akSource: The [[ObjectReference Script|ObjectReference]] from which to cast the spell.  The source must be able to cast this spell (testings seem to show anything will work, regardless whether they have the spell or not).
Anonymous user