Difference between revisions of "Event Handling"

208 bytes added ,  16:43, 11 February 2017
no edit summary
imported>Ana
m
imported>Ana
 
(2 intermediate revisions by 2 users not shown)
Line 18: Line 18:
|| [[OnActorUnequip]] || Unequipped || Unequipped
|| [[OnActorUnequip]] || Unequipped || Unequipped
|-
|-
|| [[OnAdd]] || AddedTo || AddedItem
|| [[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 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.




Anonymous user