OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: dmakatra on 24 Jan 2003, 18:05:26

Title: BOOM! and then CRASH!
Post by: dmakatra on 24 Jan 2003, 18:05:26
My topic name is a good explanation why I should be voted to "The most dumbest and worsest explained topic namer 2003".

Anyway, letÂ's get to the point:

Simple Noob Q: How do I check if a certain choppa has get damaged?

Thx in advance
Title: Re:BOOM! and then CRASH!
Post by: cpt.Hawkeyez on 24 Jan 2003, 18:27:23
Do you want to know if the chopper is destroyed or if it can move? If you want to know if it is alive do this
Code: [Select]
?(!(alive _choppername) goto "whatever"
then depending on what script you want to call up after you detect if there alive or not then just go on from there basicllay that code in english means
?[if](![not](alive _chopername) goto "whatever"
so if chopper is not alive goto placemark whatever. Easy huh

CymPaTheeY
Title: Re:BOOM! and then CRASH!
Post by: dmakatra on 24 Jan 2003, 18:30:43
No, I want to check if the chopper is dammaged, not dead. Thx anyway
Title: Re:BOOM! and then CRASH!
Post by: Echo5Hotel on 24 Jan 2003, 21:49:38
Wouldn't it be:

choppername GetDammage <=1

Echo5Hotel
Title: Re:BOOM! and then CRASH!
Post by: LCD on 24 Jan 2003, 22:01:34
@ Echo5Hotel

not exactly :P

it wil b

GetDammage choppername  > 0

;) ;D

LCD OUT
Title: Re:BOOM! and then CRASH!
Post by: Echo5Hotel on 25 Jan 2003, 02:33:23
Your right LCD, I stand corrected.  My string would have checked to see if it were damaged OR dead not just damaged.

Echo5Hotel

@ Echo5Hotel

not exactly :P

it wil b

choppername GetDammage > 0

;) ;D

LCD OUT
Title: Re:BOOM! and then CRASH!
Post by: LCD on 25 Jan 2003, 02:40:56
actuly i had somthin wrong in ma code a;lso but i fixed it ;) ;D

@ Echo5Hotel

ur string cant check nothing ;)cuz it should b

GetDammage choppername > 0

also if urs wil b working it wil actiavted if da plane was dammaged or alive or dead ;D

in anyway it would b activated ;D

LCD OUT