Page 1 of 1

On Activate

PostPosted: Sun Aug 09, 2009 12:18 am
by Amy Cooper
Does the onactivate command work the same when taking an item out of an inventory?

On Activate

PostPosted: Sun Aug 09, 2009 5:52 am
by SamanthaLove
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.

On Activate

PostPosted: Sun Aug 09, 2009 9:19 am
by Marlo Stanfield
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.