Difference between revisions of "Talk:Cast"

740 bytes added ,  16:20, 21 January 2008
→‎Spell casting from an object: true - in general, not just for this function
imported>HawkFest
imported>DragoonWraith
(→‎Spell casting from an object: true - in general, not just for this function)
Line 31: Line 31:
Wich means that any item in your inventory will not execute a cast function from within its attached script (MenuMode block, OnEquip block, etc.), and the script just moves on to the next line of code. This issue was [http://www.bethsoft.com/bgsforums/index.php?showtopic=799581 discussed on Bethesda forum].
Wich means that any item in your inventory will not execute a cast function from within its attached script (MenuMode block, OnEquip block, etc.), and the script just moves on to the next line of code. This issue was [http://www.bethsoft.com/bgsforums/index.php?showtopic=799581 discussed on Bethesda forum].
--[[User:HawkFest|HawkFest]] 03:06, 21 January 2008 (EST)
--[[User:HawkFest|HawkFest]] 03:06, 21 January 2008 (EST)
:Mm, this is true. It's true of most functions, actually. Scripted items in inventories can't actually do very much without supplying a reference.
:You can use [[GetContainer]] to do what I assume you were trying to do - to get the person holding the item to cast the spell.
:Or you can use a Disable, Persistent Activator to cast the spell on the Ref from GetContainer, if you want to spell to be cast on the person holding the item.
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 16:20, 21 January 2008 (EST)