ok i am just wondering a few things about destroyable. like how does the destroyable static tell the engine what wreck to use? the wreck for a large bunker has almost the same code, it is just missing
ObjectTemplate.setNetworkableInfo BasicInfo
ObjectTemplate.activeSafe DestroyableObject
ObjectTemplate.isDestructable 1
and
rem ---BeginComp:Armor ---
ObjectTemplate.createComponent Armor
ObjectTemplate.armor.maxHitPoints 100
ObjectTemplate.armor.hitPoints 100
ObjectTemplate.armor.defaultMaterial 78
ObjectTemplate.armor.waterLevel -0.3
ObjectTemplate.armor.explosionDamage 1
ObjectTemplate.armor.explosionMaterial 78
ObjectTemplate.armor.wreckExplosionMaterial 78
ObjectTemplate.armor.wreckHitPoints 100
ObjectTemplate.armor.timeToStayAsWreck -1
ObjectTemplate.armor.timeToStayAfterDestroyed -1
ObjectTemplate.armor.wreckDelay 0.05
ObjectTemplate.armor.canBeDestroyed 0
ObjectTemplate.armor.showDamageAsDirt 500
ObjectTemplate.armor.addArmorEffect 0 e_mexp_m_prbuilding -0.046982/1.36782/0.058744 0/0/0
rem ---EndComp ---
so if you were to give the wreck the same code could you make the wreck destroyable too? i am guessing the wreck has no networkable info cus it has no health, right?
[Question] destroyable statics?
-
IronTaxi
- Retired PR Developer
- Posts: 4925
- Joined: 2006-05-31 12:56
-
Mora
- Posts: 2933
- Joined: 2007-08-21 12:37

