OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Knut Erik on 03 Feb 2003, 14:45:31

Title: Alive?
Post by: Knut Erik on 03 Feb 2003, 14:45:31
Hi.
I have a mission where you must protect an truck.
When I lost I used this script
not (alive truck1)

But what do I do to indicate that the truck is alive?
The objective is "Protect the truck" so I want the objective to be completed untill it is destroyed.
Can anyone help me?
Title: Re:Alive?
Post by: Ranger on 03 Feb 2003, 18:01:18
Is this a trick question?

Simply, remove the not, and you check if it's alive.

alive truck1
Title: Re:Alive?
Post by: Knut Erik on 03 Feb 2003, 20:07:45
Øh.
Smart!
Why did I not think of that.
I've tried:
If (alive truck1)
true (alive truck1)
and so on. Thanks a lot.. ;D