Blockland Forums > Modification Help
Vehicle damage detection
(1/1)
Minnax:
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.
CityRPG:
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)
Katadeus:
So invincible vehicles are easy?
Sweet.
Minnax:

--- Quote from: CityRPG on January 12, 2012, 06:40:06 PM ---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)

--- End quote ---

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

Go to full version