71
edits
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> |
edits