Game Development Community

Triggers and Vehicles.

by Bruce Wallace · in Torque Game Engine · 02/15/2002 (4:50 am) · 9 replies

I've been working with triggers, and currently Vehicle's don't trigger.

Am I correct in assuming that If TriggerObjectType would be added to the collision mask of a vehicle It would then be noticed by the triggers?

I can see this being very useful for race type games and checkpoints etc.

Would this cause any problems that anyone knows of?
Or any other suggestions or comments.

#1
02/17/2002 (9:38 pm)
I wrote a T2 race game a little while ago (read a long time).

I found the best way to do the "Gate" calculations was not by trigger but by a schedled distance check from teh vehicle to the gate in question

A good example of this (If you have T2) is the training mission 1 code where you drive the scout bike to the MPB..... when you get within x meters of the MPB, game over
#2
02/18/2002 (1:06 am)
The reason I think triggers are Ideal is you can have any mapper throw checkpoints/start finish lines down on the map and name them start checkpoint1 checkpoint2 etc. and process them simply.

Good Idea tho, if for some reason the vehicle's cant activate the triggers, I've been experimenting and so far only have been able to get vehicles to bounce off triggers but Tim G said he was going to look into them (Yay!).

Thanks for the Idea
#3
02/21/2002 (9:12 am)
FYI: I did fix the vehicle triggers, in case you missed that on the other thread...
#4
02/21/2002 (9:24 am)
Sorry for this basic question, but how do I use triggers? How do I place them in a map (dummy objects?) and how do I process them in code/script?
#5
02/21/2002 (10:13 am)
I'll try to write up something on triggers later today.

For an example of a map with triggers and the script that interact with them. I posted a modified version of Tim's racetrack with some checkpoints. I plan to post it later as a resource but have a few things I want to do with it first.

Track with triggers
#6
02/21/2002 (10:52 am)
Cool! Thanx - looking into your scripts really helps! Looking forward to your tutorial :-)
#7
02/21/2002 (1:06 pm)
SOunds like i need to download another HEAD version and that map.

:)
#8
02/26/2002 (6:30 pm)
Is there a write up on this now?
#9
03/06/2003 (9:36 am)
Hello folks!

Well i have setup a trigger for my flying vehicle last night but it doesnt seem to work. I have follow the tutorial from TGE documentation page (the flagpole) and make the trigger box quite large. But when my flyinf vehicle enter that zone the flag doesnt seem to move at all 8-(.

I am currently using the torquedemo 1.1.2 for as my testbench (still need to recompile the latest head version).

Is it an issue/problem with this version? (that flying vehicle dont activate triggers).

Thanks!