Difference between revisions of "Event Handling"
no edit summary
imported>JT (redlink [Events] -> [Event]s (per nonplural convention for page titles)) |
imported>Ana |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 18: | Line 18: | ||
|| [[OnActorUnequip]] || Unequipped || Unequipped | || [[OnActorUnequip]] || Unequipped || Unequipped | ||
|- | |- | ||
|| [[OnAdd]] || | || [[OnAdd]] || AddedItem || AddedTo | ||
|- | |- | ||
|| [[OnClose]] || Closed || Closer | || [[OnClose]] || Closed || Closer | ||
Line 46: | Line 46: | ||
|| [[OnPackageDone]] || Actor || Package | || [[OnPackageDone]] || Actor || Package | ||
|- | |- | ||
|| [[OnReset]] || WhatsReset | || [[OnReset]] || WhatsReset || WhatsReset (duplicate of first parameter) | ||
|- | |- | ||
|| [[OnSell]] || SoldInvItem || Seller (Player only?) | || [[OnSell]] || SoldInvItem || Seller (Player only?) | ||
Line 102: | Line 102: | ||
*[http://obse.silverlock.org/obse_command_doc.html#Events OBSE Documentation] | *[http://obse.silverlock.org/obse_command_doc.html#Events OBSE Documentation] | ||
*[http://www.loverslab.com/topic/39417-tutorial-nvse4-part-5-event-handlers-user-defined-events-udes/ A tutorial on NVSE Events] | *[http://www.loverslab.com/topic/39417-tutorial-nvse4-part-5-event-handlers-user-defined-events-udes/ A tutorial on NVSE Events] | ||
==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. | |||
==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. | |||