Trigger onTick info???
by Nigel Hungerford-Symes · in Torque Game Engine · 10/29/2005 (11:10 pm) · 2 replies
I'm beating my head against the onTick function.
What I have is an onTick function related to a trigger, the top line is:
function ctf_trigger::onTickTrigger(%this, %trigger)
Now the issue is that I want to given a score to the client that has been inside the trigger for a set period of time. (A ctf style trigger). So far I can only determine who is in the trigger when they enter of leave it, but not during "onTick".
Is there anyway to determine which client is in the trigger during an "onTick" event?
What I have is an onTick function related to a trigger, the top line is:
function ctf_trigger::onTickTrigger(%this, %trigger)
Now the issue is that I want to given a score to the client that has been inside the trigger for a set period of time. (A ctf style trigger). So far I can only determine who is in the trigger when they enter of leave it, but not during "onTick".
Is there anyway to determine which client is in the trigger during an "onTick" event?
Torque Owner Jimomighty
%n = %trigger.getNumObjects(); echo("n = " @ %n); for( %index = 0; %index < %n; %index++ ) { echo("the object = " @ %trigger.getObject(%index)); }