OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
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
?(!(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]( goto "whatever"
so if chopper is not alive goto placemark whatever. Easy huh
CymPaTheeY
-
No, I want to check if the chopper is dammaged, not dead. Thx anyway
-
Wouldn't it be:
choppername GetDammage <=1
Echo5Hotel
-
@ Echo5Hotel
not exactly :P
it wil b
GetDammage choppername > 0
;) ;D
LCD OUT
-
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
-
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