On Activate

Post » Sun Aug 09, 2009 12:18 am

Does the onactivate command work the same when taking an item out of an inventory?
User avatar
Amy Cooper
 
Posts: 3400
Joined: Thu Feb 01, 2007 2:38 am

Post » Sun Aug 09, 2009 5:52 am

Does the onactivate command work the same when taking an item out of an inventory?


No... the item itself doesn't activate in inventory. Then you're stuck with something like OnPCDrop or OnPCEquip instead.
User avatar
SamanthaLove
 
Posts: 3565
Joined: Mon Dec 11, 2006 3:54 am

Post » Sun Aug 09, 2009 9:19 am

Nope. If you're checking for when the player drops something, you'll need OnPCDrop, which is a short I believe. If you're checking to see if the player doesn't have it any more, you can do a GetItemCount. How does the player loose the item? If it's via script, you could always set a global variable if another script needs to know that the player doesn't have that item.
User avatar
Marlo Stanfield
 
Posts: 3432
Joined: Wed May 16, 2007 11:00 pm


Return to III - Morrowind