OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CopyrightPhilly on 05 Jul 2004, 09:17:35

Title: Getting Dammage From Bike
Post 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
Title: Re:Getting Dammage From Bike
Post by: Artak on 05 Jul 2004, 09:37:08
check for typ0s and add some delay in the loop.
Title: Re:Getting Dammage From Bike
Post by: j-man on 05 Jul 2004, 09:45:01
Have you defined the section "bike1dammage"? Also, you might want to add a delay between when it chacks the dammage and when it loops.
Title: Re:Getting Dammage From Bike
Post by: CopyrightPhilly on 05 Jul 2004, 10:05:24
yea just did all that but still it will not detect any dammage..

cheers, Philly
Title: Re:Getting Dammage From Bike
Post by: dmakatra on 05 Jul 2004, 10:16:24
Are you sure you have gone over 0.1 in damage? Do a hint format check.

:beat: *Gets Shot* :beat:
Title: Re:Getting Dammage From Bike
Post by: CopyrightPhilly on 05 Jul 2004, 10:19:03
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
Title: Re:Getting Dammage From Bike
Post by: dmakatra on 05 Jul 2004, 10:29:30
mail BAS about it.

:beat: *Gets Shot* :beat:
Title: Re:Getting Dammage From Bike
Post by: CopyrightPhilly on 05 Jul 2004, 10:30:56
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