OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Octavius on 14 Nov 2005, 19:17:13

Title: I can't get the objective in my briefing to change
Post by: Octavius on 14 Nov 2005, 19:17:13
Hello


In the mission I'm working on there are 6 fuel trucks that the players are to destroy. They are named target1 - target6.
Then I made 6 triggers and in the
"activation" field I put: game logic (I've tried with none and anybody)
and in the "condtion" field I've put: Not(alive target1)
and in the "on activation" field: "OBJ_1" objstatus "Done"

The html code in the briefing lookes like this:
<p><a name="OBJ_1"></a>fuel truck 1
</p><hr>

But when I try the mission and blow up the trucks the objectives in the briefing dosen't change what have I done wrong?

Octavius
Title: Re:I can't get the objective in my briefing to change
Post by: MrN on 14 Nov 2005, 19:36:15
So close, yet so far.  ;)

"1" objstatus "done"

should do the trick.
Title: Re:I can't get the objective in my briefing to change
Post by: macguba on 14 Nov 2005, 20:02:36
Welcome to the forum!

Alive is not a great command to use with vehicles, especially armour.    The truck can look destroyed when in fact it is 0.0001% alive which means your trigger doesn't fire.   Alive works fine for soldiers, but for vehicles its usually better to use something like

not canMove fuelTruck1

etc..
Title: Re:I can't get the objective in my briefing to change
Post by: Octavius on 15 Nov 2005, 18:16:44
Thanks for the advice it works fine now


Octavius
Title: Re:I can't get the objective in my briefing to change
Post by: 456820 on 15 Nov 2005, 20:25:21
if its solved use the solve button lower left of the screen so we all know its solved