Difference between revisions of "OnActivate"

Jump to navigation Jump to search
27 bytes removed ,  22:26, 6 August 2008
→‎Notes: 'That can be equipped' is misleading
imported>Quetzilla
m (list order)
imported>Haama
(→‎Notes: 'That can be equipped' is misleading)
Line 13: Line 13:
*Locked doors, containers and books are activated a second time automatically when you open the lock or take the book. To find out when a door was unlocked, for example, you can wait for '''[[GetLocked]] == 0''' in the OnActivate-block.
*Locked doors, containers and books are activated a second time automatically when you open the lock or take the book. To find out when a door was unlocked, for example, you can wait for '''[[GetLocked]] == 0''' in the OnActivate-block.


*Clicking on items in inventory that can be equipped causes the [[onEquip]] block to run instead of the '''onActivate''' block.
*Clicking on items in inventory causes the [[onEquip]] block to run, not the '''onActivate''' block.
**However, you can make an item run it's own onActivate block in the inventory menu (MenuMode 1008, MenuMode, onEquip, etc.) with '''''Activate player, 1'''''.
**However, you can make an item run it's own onActivate block in the inventory menu (MenuMode 1008, MenuMode, onEquip, etc.) with '''''Activate player, 1'''''.


Anonymous user

Navigation menu