Difference between revisions of "Event Handling"
no edit summary
imported>JT (OnReset handler requires two parameters) |
imported>Ana |
||
(One intermediate revision by the same user not shown) | |||
Line 18: | Line 18: | ||
|| [[OnActorUnequip]] || Unequipped || Unequipped | || [[OnActorUnequip]] || Unequipped || Unequipped | ||
|- | |- | ||
|| [[OnAdd]] || | || [[OnAdd]] || AddedItem || AddedTo | ||
|- | |- | ||
|| [[OnClose]] || Closed || Closer | || [[OnClose]] || Closed || Closer | ||
Line 105: | Line 105: | ||
==Note on OnActorEquip== | ==Note on OnActorEquip== | ||
GetType 40 (=weapons) on rEquipped will return false, because rEquipped is the ammo loaded on the weapon itself. So, if there are no avaiable ammos, or it's a melee weapon, it won't even fire up. Also, on load, if the weapon is out it will fire the event, since it loads ammos. | GetType 40 (=weapons) on rEquipped will return false, because rEquipped is the ammo loaded on the weapon itself. So, if there are no avaiable ammos, or it's a melee weapon, it won't even fire up. Also, on load, if the weapon is out it will fire the event, since it loads ammos. | ||
==Note on OnAdd== | |||
11/feb/2017 - OnAdd seems firing only in Gamemode when picking something from the ground, but not in MenuMode when moving stuff on containers. | |||