OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: mr dna on 17 Apr 2004, 05:50:43

Title: steal a chopper
Post by: mr dna on 17 Apr 2004, 05:50:43
can anyone explain how i can set off a trigger when a unit in the players group has stolen an enemy chopper?
Title: Re:steal a chopper
Post by: HuNtA on 17 Apr 2004, 10:16:43
I dunno if this will work, but in condition, put this:


driver vehicle heli1 == player
Title: Re:steal a chopper
Post by: Kaliyuga on 17 Apr 2004, 10:28:59
you can make a group name but putting

mygroup=groupthis

inside the officers init line
(think you can put it in any group members.. but most use the officer)

and then

mygroup in heli1

should work i think...

i know it works for individual players when you use their names.. not sure if you need slightly different syntax for a whole or part of a group.

:cheers:
Title: Re:steal a chopper
Post by: csde-PiLLe on 17 Apr 2004, 15:44:19
Trigger condition: driver myVehicle in units group leader player

my suggestion :)

Cheers
PiLLe

€dit: Forgot to add "units".
Also, it works. Used it in:
http://home.arcor.de/sidargo/helotrap.wmv
;)
Title: Re:steal a chopper
Post by: mr dna on 20 Apr 2004, 05:38:22
thnx guys that should work nicely