OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: OrnelP on 02 Jun 2006, 13:56:10

Title: Unit fuel and dammage Question
Post by: OrnelP on 02 Jun 2006, 13:56:10
 :P Hey yall, me again :)   OK first off, I have a helicopter named Chopper 1.  When chopper1 recieves .50% dammage i want chopper 1 to land.

this is what im trying to use. im not too keen on scripting so i try to avoid it like the plague...

Trigger Init

Activation:   Chopper1 dammage <.50

On activation:  Chopper1 land land

But it gives me an error.   2nd question would be the same just with Fuel  Chopper1 fuel <.50 chopper1 land land. PLz help me :)      The Infamous OrnelP ;D            And if scripting is the only way to do it, im all ears, ears of corn of course...
Title: Re: Unit fuel and dammage Question
Post by: Gogs on 02 Jun 2006, 14:01:14
Its all alright, but it should be

chopper1 land "land"

I think. Close ;)
Title: Re: Unit fuel and dammage Question
Post by: rado1265 on 02 Jun 2006, 17:49:54
You're getting an error while still in the trigger, yes?

Here it is:

Code: [Select]
getDammage _choppername > 0.50

and

Code: [Select]
fuel _choppername < 0.5


For the landing part look at the Gogs'. ;)


Quote
im not too keen on scripting so i try to avoid it like the plague...

A wise policy, mate. Remember; scripts don't make a good mission by themselves (they're just a tool when it's necessary), the 'designing talent' does. ;)