Difference between revisions of "Talk:Cast - Spell"

Jump to navigation Jump to search
406 bytes added ,  06:07, 11 October 2023
no edit summary
imported>Cscottydont
Line 20: Line 20:
<br>
<br>
[[User:Cscottydont|Cscottydont]] ([[User talk:Cscottydont|talk]]) 2013-01-29T15:32:26 (EST)
[[User:Cscottydont|Cscottydont]] ([[User talk:Cscottydont|talk]]) 2013-01-29T15:32:26 (EST)
== Cast and unloaded cells  ==
This function returns an error if called when either akSource or akTarget is in unloaded cell.<br>
Check if cell the target (or caster, depending on your script) is currently in [[IsAttached_-_Cell|is attached]], to determine if it's safe to call Cast():
<source lang="papyrus">
If akTarget.GetParentCell().IsAttached()
    mySpell.Cast(akSource, akTarget)
EndIf
</source>
71

edits

Navigation menu