Difference between revisions of "Talk:OnEquip"

11 bytes removed ,  05:38, 18 May 2010
m
imported>Skevitj
imported>Skevitj
Line 25: Line 25:




I'm working on a script and during playtesting I keep getting a reoccuring bug when I switch between two items with the same script. I've checked it throughly, meaning the chance that this bug is due to a syntax error is next to 0. I have managed to come up with one other plausible explanation, which explains my problem prefectly: When an item is equiped, replacing another equiped item, the onequip block of the new item is run before the onunequip block of the old item. Could someone please confirm this if they have proof for or against it, or can people please being yelling at me if this is explained somewhere else and I've missed it.
While working on a script, during playtesting I keep getting a reoccuring bug when switching between two items with the same script. I've checked it throughly, meaning the chance that this bug is due to a syntax error is next to 0. I have come up with one other plausible explanation, which explains my problem perfectly: When an item is equiped, replacing another equiped item, the onequip block of the new item is run before the onunequip block of the old item. Could someone please confirm this if they have proof for or against it, or can people please being yelling at me if this is explained somewhere else and I've missed it.
(First time posting here, or even editing a wiki page for that matter, so point stuff out if i've gone wrong)<br />
(First time posting here, or even editing a wiki page for that matter, so point stuff out if i've gone wrong)<br />
[[User:Skevitj|Skevitj]] 05:36, 18 May 2010 (EDT)
[[User:Skevitj|Skevitj]] 05:36, 18 May 2010 (EDT)
Anonymous user