moggel Posted September 2, 2023 Posted September 2, 2023 (edited) I am currently working on a project to try and allow more realistic GBAD, with dense IADS more akin to what was the reality around Baghdad back during Desert Storm. To allow that I might need to simply remove destroyed groups, which won't look very good. So, it I could instead replace them with static objects, many depicting the burnt out hulks/wrecks of launchers, TELARs, trucks etc. that's bee great. Can anyone suggest some mods that contains 3D models for damaged vehicles, or is there a clever way to get the ones already in the game? Edited September 2, 2023 by moggel i7-3930K CPU @ 3.20GHz; 16Gb DDR3; GeForce GTX 1070; Windows 10; TM Warthog HOTAS
razo+r Posted September 2, 2023 Posted September 2, 2023 Select a static object and tick the box "dead" and you'll get a destroyed unit. 2
moggel Posted September 4, 2023 Author Posted September 4, 2023 On 9/2/2023 at 1:06 PM, razo+r said: Select a static object and tick the box "dead" and you'll get a destroyed unit. Thanks, but I need to be able to do it from script. Can I create a static object from any (non-static) unit? i7-3930K CPU @ 3.20GHz; 16Gb DDR3; GeForce GTX 1070; Windows 10; TM Warthog HOTAS
Solution moggel Posted September 5, 2023 Author Solution Posted September 5, 2023 Answering my own question, in case more people have a need to substitute AI-controlled objects with simple statics, damaged or not. This can be achieved with MOOSE's SPAWNSTATIC code api. No need to even drop the intended static model on the map, just check the controlled object's type name and use it with the SPAWNSTATIC:NewFromType function to get a SPAWNSTATIC wrapper. Then use that wrapper's :Spawn-functions. If anyone's interested I can paste the code for a "substitute with static" script i7-3930K CPU @ 3.20GHz; 16Gb DDR3; GeForce GTX 1070; Windows 10; TM Warthog HOTAS
Recommended Posts