|
addArmorEffect
addArmorEffect
<hitpoints, int> <effectname> <positions x/y/z>
The
addArmorEffect allows you to choose an effect when the playerControlObject hits a certain hitpoints. That effect will stay on until it reaches
the next ArmourEffect.
Example:
This example is from the Corsair, it shows that when the hitpoints
of the vehicle reaches 65, it will start the effect em_corsairDamage
at a position of 0/0.103/2.11 relative to the center of the plane.
The effect will stay active until 20 hitpoints are reached, them
the e_corsairFire will start.
ObjectTemplate.addArmorEffect 65 em_CorsairDamage 0/0.103/2.11
ObjectTemplate.addArmorEffect 65 em_PlaneDamage 0/0.103/2.61
ObjectTemplate.addArmorEffect 20 e_CorsairFire 0/1/3
ObjectTemplate.addArmorEffect 0 e_ExplGas 0/0/0
ObjectTemplate.addArmorEffect 0 e_ScrapMetal_Corsair 0/0/0
ObjectTemplate.addArmorEffect -1 WaterWaterExplosion 0/0/0
ObjectTemplate.damageFromWater 1
ObjectTemplate.aiTemplate Corsair
Valid object
types
PlayerControlObject
- Object that can be taken over and occupied by players (vehicles
and stationary weapons).
|
|