Home   Help Search Login Register  

Author Topic: Unit fuel and dammage Question  (Read 755 times)

0 Members and 2 Guests are viewing this topic.

Offline OrnelP

  • Members
  • *
  • "The true battlefield is within"
Unit fuel and dammage Question
« 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...
War is delightful to those who have had no experience of it
- Deciderius Erasmus

Offline Gogs

  • Contributing Member
  • **
  • WWIIEC - Gracefully retired boss
Re: Unit fuel and dammage Question
« Reply #1 on: 02 Jun 2006, 14:01:14 »
Its all alright, but it should be

chopper1 land "land"

I think. Close ;)

Offline rado1265

  • Members
  • *
Re: Unit fuel and dammage Question
« Reply #2 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. ;)