Home   Help Search Login Register  

Author Topic: Detecting a vehicle enters the base  (Read 464 times)

0 Members and 1 Guest are viewing this topic.

FFS_Munta

  • Guest
Detecting a vehicle enters the base
« on: 26 Jun 2003, 08:30:11 »
In a multiplayer game I have an ammo truck a fuel truck and a repair truck that have to be picked up and driven back to base to re-equip an M1A1 tank.
I have named the trucks FUEL1, AMMO1 and REPR1.
I can detect someone boarding the vehicle, with an activation script on the vehicle but need to be able to detect the vehicle making it safely back into the base (a radius around the tank)
How can I detect the truck entering the base - no matter who is driving it?

Thanks in advance... Munta

Knut Erik

  • Guest
Re:Detecting a vehicle enters the base
« Reply #1 on: 26 Jun 2003, 12:28:07 »
Create a trigger that covres the whole base.
Activation, anybody pressent.

Condicion : FUEL1 in thisList AND AMMO1 in thisList AND REPR1 in ThisList


Does it work  :-\

max_killer_payne

  • Guest
Re:Detecting a vehicle enters the base
« Reply #2 on: 28 Jun 2003, 16:44:14 »
You can check if the truck is alive and well, or if it is dead and not so well.

On Activation: [this] exec "detect.sqs"

Here is the script:

?alive nameofunit : goto "truckalive"
?not (alive nameofunit) : goto "truckdead"

#truckdead
player sidechat "We lost him......the truck is gone"



#truckalive
player sidechat "Base!! The truck made it!

CrashnBurn

  • Guest
Re:Detecting a vehicle enters the base
« Reply #3 on: 28 Jun 2003, 20:04:56 »
If all 3 trucks have to be back at the base in one piece you could use an area trigger with a condition-

Anybody present-

(("_x in thislist" count [FUEL1, AMMO1, REPR1]) == 3)