Jump to content
Sign in to follow this  
FireWalker

Trigger activated by repairing a vehicle

Recommended Posts

I have an offroad truck named : 'offrd1' . The "health" of the truck is set to : health=0.25; in the .sqm file.

I have a trigger on the map set: axis=0 , Type: none, activation: anybody, 'present', once. In the condition I have: damage offrd1 > 0.10;

I have tried many combinations of this, as in: setting the number higher or lower then 0.25, and trying < or >.

If i use the "greater than" (>) symbol, the trigger always fires when hitting preview, no need to repair. The trigger does nothing when using a "less than" (<) symbol. I really feel like the trigger condition should be looking for the "health" of the truck, but can't find any commands in the wiki that would seem appropriate to use in this case. I need this trigger to be activated by any faction when they repair the vehicle. I know if its working because I have it sending a hint while testing. This feels like it should be really simple, I guess its not my night. Any help would be appreciated.

Thank you,

Fire

Share this post


Link to post
Share on other sites

Hey, thank you for the reply. I will try it tonight when I get home.

Thanks,

Fire

Share this post


Link to post
Share on other sites

Put "damage offrd1<0.5" :-)

negatory... unfortunately. Tried several variations again, with the spaces removed as you had it. It still works automatically if you use the greater-than symbol.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×