OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CopyrightPhilly on 05 Jul 2004, 09:17:35
-
ok i'm using the following code to detect dammage on a bike
#loop
?getdammage bike1 > 0.1 :goto "bike1dammage"
goto"loop"
exit;
now i tryed that in alsorts of shapes but it still will not detect if its been dammaged, anyone got any ideas?
cheers, Philly
-
check for typ0s and add some delay in the loop.
-
Have you defined the section "bike1dammage"? Also, you might want to add a delay between when it chacks the dammage and when it loops.
-
yea just did all that but still it will not detect any dammage..
cheers, Philly
-
Are you sure you have gone over 0.1 in damage? Do a hint format check.
:beat: *Gets Shot* :beat:
-
yea i did a hint test, it kept saying 0. the bike i'm using is from one of the bas addons. the little dammage bar (like the ones in a chopper) shows more or less empty meaning that its just about dead.
dam i hate it when this happens lol :-X
cheers, PHilly
-
mail BAS about it.
:beat: *Gets Shot* :beat:
-
yea i'll do that now, cheers everone for your help.
i'll keep the thread open just incase anyone knows a way
thanks again, Philly