OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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...
-
Its all alright, but it should be
chopper1 land "land"
I think. Close ;)
-
You're getting an error while still in the trigger, yes?
Here it is:
getDammage _choppername > 0.50
and
fuel _choppername < 0.5
For the landing part look at the Gogs'. ;)
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. ;)