Difference between revisions of "OnActivate"

44 bytes added ,  11:03, 24 September 2007
Applies to all inventory items
imported>Elim Garak
imported>Haama
(Applies to all inventory items)
Line 19: Line 19:
*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.


*Reading a Book in the world will fire OnActivate, but reading it in the inventory will not.
*Selecting an item in inventory will ''equip'' it (except for enchanted scrolls) and run onEquip blocks instead of the onActivate block.


==See Also==  
==See Also==  
Anonymous user