Difference between revisions of "Talk:OnAdd"

552 bytes added ,  16:38, 19 January 2009
Sounds good, then
imported>Cipscis
(Re: On the notes)
imported>Haama
(Sounds good, then)
Line 5: Line 5:
:I am going to play around more when I am home to see if I can use a gamemode script with a timer to add an item shortly after the actor spawns using AddItem (which will trigger the OnAdd block). My previous experiments with this showed that a gamemode block on an item script calling additem on its container would freeze the game, but it may be because the item I was adding also called RemoveMe in its OnAdd block. I hope to find a workaround for this.
:I am going to play around more when I am home to see if I can use a gamemode script with a timer to add an item shortly after the actor spawns using AddItem (which will trigger the OnAdd block). My previous experiments with this showed that a gamemode block on an item script calling additem on its container would freeze the game, but it may be because the item I was adding also called RemoveMe in its OnAdd block. I hope to find a workaround for this.
:--[[User:SnakeChomp|SnakeChomp]] 21:06, 19 January 2009 (UTC)
:--[[User:SnakeChomp|SnakeChomp]] 21:06, 19 January 2009 (UTC)
::For the note that I added, about the Death Items, they were.  I tried it with and without the player killing them, and it seems to be true for regular Death Items and for those added via perks like Contract Killer.<br />It's not all bad, you can use it to tell when the item is first removed from its container.<br />-- [[User:Cipscis|Cipscis]] 21:08, 19 January 2009 (UTC)
::The GameMode script shouldn't freeze the game - try something simpler? I asked because in Oblivion (yeah, yeah - new computer should be up tomorrow so I can ''finally'' test these things myself) when you added an item to a remote container it would fire the script, so a '''GameMode''' block would run. However, the '''onAdd''' block wouldn't fire until the player entered the cell.
::--[[User:Haama|Haama]] 21:38, 19 January 2009 (UTC)
:For the note that I added, about the Death Items, they were.  I tried it with and without the player killing them, and it seems to be true for regular Death Items and for those added via perks like Contract Killer.<br />It's not all bad, you can use it to tell when the item is first removed from its container.<br />-- [[User:Cipscis|Cipscis]] 21:08, 19 January 2009 (UTC)
::Sounds good, then. Confirmation is always a good thing :)
::--[[User:Haama|Haama]] 21:38, 19 January 2009 (UTC)
Anonymous user