Taking a Thing from an NPC

I have defined a dead NPC and have tried putting a couple items on it.

Brig_Guard:
    Actor
    'Guard'
{
...
}
Brig_Guard_PComm:
    Thing
    'pcomm' 'PComm'
{
    location = Brig_Guard;
    ....
}

I defined a dobjFor(Take) action - and dobjFor(TakeFrom) just in case - and when I try to take it I keep getting:

The it won't let you have that.

I’ve looked around for this message and haven’t seen anything. Is there an attribute I haven’t uncovered yet that I need to set on the Thing to allow it to be taken? This is an action I will be needing to do frequently.

Thanks!

The message property is willNotLetGoMsg(holder, obj), defined in msg_neu.t, and it’s invoked in Actor.checkTakeFromInventory(actor, obj), which is the method you want to override (on your dead actor, not on the thing you want to take from him).

The base implementation of the method displays a refusal and aborts the action for any other actor wanting to take any object; you’ll need to override it to do nothing at all.

Try this:

Brig_Guard:
    Actor
    'Guard'
{
    checkTakeFromInventory(actor, obj) { /* Don't disallow taking anything. */ }
    ...
}

That works brilliantly! Thanks.
I just tweaked the code above to spit out a “You take the …” message.