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
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
About the author
#2
Phil.
10/08/2002 (3:11 pm)
Ken. Take a look at the flags in the Realmwars CVS, they do what you want.Phil.
Torque Owner Sam Guffey
Sam