OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: OFP-SpecOps on 13 Oct 2003, 23:56:18
-
This should be easy for someone to answer.
I am making a mission where I have to locate and destroy three cached ammo sites. I want to place a demo charge on the ammo crates to destroy them. I named the crates at the sites c1, c2 & c3.
Now the question; how do I activate the trigger to end the mission after all three sets of ammo crates are destroyed?
-
OFP-SpecOps
Use a END # type trigger witht he following features..
Type - END #
Condition - EITHER :-
not alive c1 AND not alive c2 AND not alive c3
OR
Using the getdammage command create a small syntax line/s so that when the crates are at a certain dammage level the script can be activated.
Hope that works for you..
P.S - the # in END # detonates what value of END trigger you want this specific trigger to be.. IE there might be other values/objectives/ or conditions that can be met to make the mission/intro end.. Get me ;D
Rhys
-
Thanks rhysduk,
I was using the not alive in the trigger but it wasn't working for the ammo crates. I have used it in the past for tanks but not objects. I thought that may have been the problem. I will have another look and see if I can fix it.
-
It worked rhysduk, my syntax must have been wrong. I cut & pasted your line into my trigger and it worked. Thanks again. :)
-
No Problem Spec Ops ;D
Topic Solved ?
Rhys