Game Development Community

How to pick up and drop item at runtime?

by Ken Leong · in Torque Game Engine · 10/06/2002 (8:06 pm) · 2 replies

Hi all,
Does anyone have any suggestion on how to remove an Item from mission while player pick it up and add it back while player drop it back?
in the script, the server/scripts/item.cs:
function ItemData::onPickup(%this,%obj,%user,%amount) {
...
if (%obj.isStatic())
%obj.respawn();
else
%obj.delete();
return true;
}

how can this be modified to suit my need?
thanks in advance.
ken

#1
10/08/2002 (2:37 pm)
You may need to be more specific. Its a bit hard to understand what you are needing done. Get back to this post and I'll help ya through it.

Sam
#2
10/08/2002 (3:11 pm)
Ken. Take a look at the flags in the Realmwars CVS, they do what you want.


Phil.