Difference between revisions of "Cast - Spell"

m
→‎Notes: Daul -> Dual
m (→‎Notes: Added link to the mod which addresses the issue concerning Dual Casting.)
m (→‎Notes: Daul -> Dual)
 
(One intermediate revision by one other user not shown)
Line 24: Line 24:


== Notes ==
== Notes ==
*This function cannot be called if either akSource or akTarget is in unloaded cell.
*This function casts the spell instantaneously.  This is mainly desirable only for non-actors, because it will not animate an actor.  For instance, the spell will be cast even if the actor's hands are not readied.
*This function casts the spell instantaneously.  This is mainly desirable only for non-actors, because it will not animate an actor.  For instance, the spell will be cast even if the actor's hands are not readied.
*If you wish to make an actor cast a spell using all the normal spellcasting behaviors, please instead use an AI package that includes the [[Procedure_UseMagic|UseMagic procedure]].
*If you wish to make an actor cast a spell using all the normal spellcasting behaviors, please instead use an AI package that includes the [[Procedure_UseMagic|UseMagic procedure]].
Line 30: Line 31:
*Using this function will invalidate (cause it to return 0/false when it should return 1/true) any ongoing '''isDualCasting''' condition checks on akSource.   
*Using this function will invalidate (cause it to return 0/false when it should return 1/true) any ongoing '''isDualCasting''' condition checks on akSource.   
**'''isDualCasting''' will continue to return false after the '''Cast''' function is called until akSource stops dual casting.
**'''isDualCasting''' will continue to return false after the '''Cast''' function is called until akSource stops dual casting.
**There's now a fix for the above issue that is found here: [https://www.nexusmods.com/skyrimspecialedition/mods/92454 Po3's Daul Casting Fix]
**There's now a fix for the above issue that is found here: [https://www.nexusmods.com/skyrimspecialedition/mods/92454 Po3's Dual Casting Fix]


== Bug ==
== Bug ==