Jump to content
Sign in to follow this  
Howard

Trigger activated by armor loss

Recommended Posts

What condition do you need on a trigger to make it activate when the armor of a vehicle drops below ex. 30%?

I tried "armor vehicle < 30" but I just get a "Missing ;" error, I guess "armor" isn't really a command...

Share this post


Link to post
Share on other sites

Just to clarify so you know, kylania means the name of the tank for "tankObject", don't actually type tankObject in there unless that's what you name the tank.

So if you name it tank1, the command for checking if it's under 30% would be as kylania said: damage tank1 > 0.7

The game's health/amor/ammo values dont operate from 0-100 like percentages, it's 0-1. So 30% is 0.3. So since you're going by armor, 30% or less armor means 70% or more damage, thus the "> 0.7".

Hope that clears some stuff up if you didn't know already.

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  

×