Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

OnEquip event?

Page: 1 of 1
 SithRevan
01-05-2007, 1:39 PM
#1
Hey everybody I was wondering if it would be possible to fire a script when an npc equips an item. If this is possible could you guys tell me how to do it, I would really appreciate it. Thanks everybody.:)
 stoffe
01-05-2007, 1:56 PM
#2
Hey everybody I was wondering if it would be possible to fire a script when an npc equips an item. If this is possible could you guys tell me how to do it, I would really appreciate it. Thanks everybody.:)

There is no OneQuip event hook for the KotOR engine as far as I know. (NWN has a module specific one, but it was added after KotOR was made.)

You can do a workaround using heartbeat scripts (if it could happen at any time) or recursive checks (if you only need to check briefly), where a script monitors what's currently in the player's eqipment slots and either take action directly, or signal an user-defined event when it changes.
Page: 1 of 1