Difference between revisions of "Cast - Spell"
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). |