OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Trash Can Man on 16 Aug 2005, 01:47:00
-
I am making a mission that requires stealing a T-90 and bring it to a catpured airfield. What I can't figure out is how to make a specific trigger that knows when the tank has arrived. Also, I need to make a trigger the Ends the mission in Failure if the tank gets destroyed. Is this possible without a script?
Regards,
Trash Can Man
-
Uhh, maybe try the following:
Problem 1:
Make a trigger that covers the airfield and set it to west present (or whatever side the stealer is on)
Then, in the condition field, type:
player in thislist and player in TankName
Where TankName is the name of the T-90
Problem 2:
Put the following in the condition field of a trigger:
Not alive TankName
Where TankName is the name of the T-90
-Student Pilot
-
Problem 1:
You can also group a trigger to a unit. Place an any unit present trigger. Click on group button, then drag a group line between the trigger and the T-90. Then only the T-90 will set off that trigger.
-
IIRC grouping a trigger to an empty vehicle won't work. I am assuming the T-90 that the player must steal is empty. I would be glad to be proven wrong on this, however.
-Student Pilot
-
Or try this inside a trigger:
tankname distance log1 < 100
where tankname is name of tank
log1 is a gamelogic placed at the airfield
also instead of using:
not alive tankname
it is better to use:
not canmove tankname
because your tank could get its tracks blown or disabled but not actually be dead
-
Does gamelogic need to be named, or is "log1" the name?
-
The gamelogic will need to be named.
@canmove vs !alive
Doh! That's right, I had forgotten about that. ::) Thanks, ROBINO.
-Student Pilot