Author Topic: Vehicle damage detection  (Read 791 times)

I want to know if there is a function for vehicle getting damaged for anything, as I want to include in a weapon, where it'll deal reduced damage to it than normal.

Wrong section, but you're in luck. I think this is default functionality.

AddDamageType(%name, %Self Delete, %kill, %playerDamage, %vehicleDamage);

If a projectile does 100 damage, but has a damage type, then it will do 100 * %playerDamage to players and bots (horses, tank turrets), and 100 * %vehicleDamage to vehicles (Jeeps, Tank Bodies)

So invincible vehicles are easy?
Sweet.

Wrong section, but you're in luck. I think this is default functionality.

AddDamageType(%name, %Self Delete, %kill, %playerDamage, %vehicleDamage);

If a projectile does 100 damage, but has a damage type, then it will do 100 * %playerDamage to players and bots (horses, tank turrets), and 100 * %vehicleDamage to vehicles (Jeeps, Tank Bodies)

Aw stuff I wasn't really paying attention to what section, sorry about that.
however, thanks!