Home   Help Search Login Register  

Author Topic: Detect What Vehicle Ativated The Trigger?  (Read 529 times)

0 Members and 1 Guest are viewing this topic.

CopyrightPhilly

  • Guest
Detect What Vehicle Ativated The Trigger?
« on: 05 Jul 2004, 11:55:20 »
ok What i'm after to do is once the trigger is activated it runs a script called waypoint.sqs

now i want it to detect what vehicle activated the script.

so say bike1 actived the script then to goto "bike1"
and if bike2 activated the script then to goto "bike2"
and so on...

dose anyone know how to do this?

cheers, Philly

AnarCHy

  • Guest
Re:Detect What Vehicle Ativated The Trigger?
« Reply #1 on: 05 Jul 2004, 12:28:39 »
Does the unit activate a camera?
Or does it do some kind of mystery thing that ends up not having an effect at all?


If it activates something that follows or uses the unit then you could:
Make a trigger with the following in its' fields:

Axis A: 50 Axis B: 5000
Activation: West (east,resistance,civ) Once
On Activation: this exec "whatever.sqs"


Helped?

CopyrightPhilly

  • Guest
Re:Detect What Vehicle Ativated The Trigger?
« Reply #2 on: 05 Jul 2004, 12:39:07 »
the map i'm macking is a race map on bikes under shell fire. so when the player passes throw the waypoint on his bike and hes the first to go throw that waypoint i want it to say "Bike #1 is first at waypoint 1" or what ever bike or waypoint it may be at the time.

there not all grouped so doing it throw the waypoint dose not work (because theres 4 difrent waypoints for the 1) so i decided to do it by a trigger.

cheers, PHilly

ponq

  • Guest
Re:Detect What Vehicle Ativated The Trigger?
« Reply #3 on: 05 Jul 2004, 12:44:57 »
trigger, covering the "checkpoint":
activated by side of biker (civ I assume), once
condition: present

on activation: thislist exec "bikefirst.sqs"
(syntax could be [thislist] exec "bikefirst.sqs", or even:
bikes = thislist; [bikes] exec "bikefirst.sqs". Or without the brackets...;))


bikefirst.sqs:
_dude= _this select 0
hint format ["First at this waypoint is: %1", name _dude]
exit


This is just theory and not tested...but I think it should work.

CopyrightPhilly

  • Guest
Re:Detect What Vehicle Ativated The Trigger?
« Reply #4 on: 05 Jul 2004, 12:52:18 »
thanks a lot bud, worked like a dream...

cheers, Philly