Difference between revisions of "Talk:Magic effect scripts"
→Determining The Caster: Answered
imported>Innominate |
imported>Haama (→Determining The Caster: Answered) |
||
Line 43: | Line 43: | ||
Is there any function you can use to determine who cast a scripted spell? I'm thinking something I can use like "Set casterRef To <function>", so I can generalise a spell to be able to be used by NPCs as well as the player. [[User:Innominate|Innominate]] 02:49, 15 July 2008 (EDT) | Is there any function you can use to determine who cast a scripted spell? I'm thinking something I can use like "Set casterRef To <function>", so I can generalise a spell to be able to be used by NPCs as well as the player. [[User:Innominate|Innominate]] 02:49, 15 July 2008 (EDT) | ||
:Use a combination of [[GetScriptActiveEffectIndex]] and [[GetNthActiveEffectCaster]].--[[User:Haama|Haama]] 14:35, 15 July 2008 (EDT) |