Difference between revisions of "Cast"
Jump to navigation
Jump to search
imported>JOG |
imported>DragoonWraith (can't be called by the player, actors use cast animation, non-actors don't, and only actors work as targets) |
||
Line 5: | Line 5: | ||
Calling object casts spell onto target, spells only. | Calling object casts spell onto target, spells only. | ||
==Notes== | |||
*This function cannot be called by the player, i.e. no ''player.Cast''. | |||
*If called by an actor, the actor will use his cast animation to cast the spell. | |||
*If called by anything else, the spell will just fly out. | |||
*Only actors seem to work as targets. If the target is anything but an actor, the calling reference will shoot directly down the negative ''y''-axis, rather than in the direction of the target. | |||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: Magic Functions]] | [[Category: Magic Functions]] | ||
[[Category:Actor Functions]] | [[Category:Actor Functions]] |
Revision as of 08:44, 18 May 2007
Syntax:
[[ActorID|ActivatorID.]Cast SpellID [TargetRefID]
Example:
Cast ShrineAkatoshSpeedMagicka Player
Calling object casts spell onto target, spells only.
Notes
- This function cannot be called by the player, i.e. no player.Cast.
- If called by an actor, the actor will use his cast animation to cast the spell.
- If called by anything else, the spell will just fly out.
- Only actors seem to work as targets. If the target is anything but an actor, the calling reference will shoot directly down the negative y-axis, rather than in the direction of the target.