Page MenuHomeFeedback Tracker

Building ruin model not creating when 'allowDamage' executed on the server
New, NormalPublic

Description


'green' house damage disabled by logic execution if (isServer) then {[nearestBuilding position this] findIf {_x allowDamage false}}; (server exec)
'red' house damage disabled by "Edit Terrain Object" module checkbox (same server exec (module functions work only on server) as from expample above)
'blue' house damage disabled by logic execution [nearestBuilding position this] findIf {_x allowDamage false} (i.e. global exec)

For the green & red damage was not disabled (isDamageAllowed returns false), seems ok because non-local objects. But if destroy them by (Demo Charges, Tanks, Bombs, etc.) the 3d ruin model was not spawned(created): building was destroyed (moved under world) but no ruin 3d models. But if destroy by cursorObject setDamage 1 the building was destroyed with ruin creation as designed

For the blue all ok

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Operating System Version
22H2
Category
Other
Steps To Reproduce


  1. download repro mission, launch dedicated server, start it
  2. place charges (2-3 for one) from your inventory to green/red house
  3. boom it and see no ruins

  1. place charges to blue, hit it and ruins was spawned as should
Additional Information

T133265 related, Allow Damage checkbox won't work and provides no ruin model if module work with destroyable objects (usage problem in module finction, not reason)

Event Timeline

TRAGER created this task.Nov 11 2023, 8:36 AM