Difference between revisions of "Cast"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(can't be called by the player, actors use cast animation, non-actors don't, and only actors work as targets)
imported>Mmmpld
(Does work on the player, removed note saying it doesn't)
Line 8: Line 8:
==Notes==
==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 an actor, the actor will use his cast animation to cast the spell.
*If called by anything else, the spell will just fly out.
*If called by anything else, the spell will just fly out.

Revision as of 07:34, 20 May 2007

Syntax:

[[ActorID|ActivatorID.]Cast SpellID [TargetRefID]

Example:

Cast ShrineAkatoshSpeedMagicka Player

Calling object casts spell onto target, spells only.

Notes

  • 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.