Difference between revisions of "UseMagic (Procedure)"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Catwheezle
(Added "see also" section items.)
imported>Terra Nova2
(Undo revision 42841 by Terra Nova2 (talk))
 
(6 intermediate revisions by 3 users not shown)
Line 22: Line 22:
|Param5=CastTimeMax
|Param5=CastTimeMax
|Type5=Float
|Type5=Float
|Desc5=The minimum amount of time the actor will play the casting animation.
|Desc5=The maximum amount of time the actor will play the casting animation.


|Param6=CoolDownTimeMin
|Param6=CoolDownTimeMin
Line 37: Line 37:


|Notes=
|Notes=
None.
*If a specific spell is assigned by Object ID, an actor will attempt to cast the spell even if it is not in his/her spell list.
*If a range of spell is assigned (eg Spells: Range Self), an actor will only attempt to cast a spell if such spells are in his/her spell list.  Alias spells are not considered.
**If the actor has no spells that qualify, he/she will draw his/her weapon and remain in an alert pose.
*Unlike when using the [[Cast_-_Spell|Cast]] function, the actor will play the casting animations.  However, magicka is still not depleted.
**If the actor does not have enough magicka to cast the spell, he/she will remain in an alert pose with the spell equipped until he/she has enough magicka to finish casting the spell.


|SeeAlso=
|SeeAlso=

Latest revision as of 09:03, 18 August 2014

Behavior

Description:
Actor walks to location and casts spell at target.

The procedure completes:
When spell is cast, and num to CastMin/Max is reached.

Parameters

  • Location (Location): Actor will walk to this location before casting spell.
  • Spell (TargetSelector): Spell to cast.
  • HoldWhenBlocked (Bool): If true, and an actor other than the target is in the way, do not cast the spell.
  • CastTimeMin (Float): The minimum amount of time the actor will play the casting animation.
  • CastTimeMax (Float): The maximum amount of time the actor will play the casting animation.
  • CoolDownTimeMin (Float): The minimum time between casts.
  • CoolDownTimeMax (Float): The maximum time between casts.
  • DualCast (Bool): If true, will dual cast the spell.

                       

Notes

  • If a specific spell is assigned by Object ID, an actor will attempt to cast the spell even if it is not in his/her spell list.
  • If a range of spell is assigned (eg Spells: Range Self), an actor will only attempt to cast a spell if such spells are in his/her spell list. Alias spells are not considered.
    • If the actor has no spells that qualify, he/she will draw his/her weapon and remain in an alert pose.
  • Unlike when using the Cast function, the actor will play the casting animations. However, magicka is still not depleted.
    • If the actor does not have enough magicka to cast the spell, he/she will remain in an alert pose with the spell equipped until he/she has enough magicka to finish casting the spell.

See Also