Atari800XL Posted September 30, 2023 Posted September 30, 2023 (edited) Hi everyone, spawning a static C-130 works in my example, spawning a fire with smoke don't. Anyone got a tip for me? Both static objects exist in my mission, no typo in the names. Removing the country.id.USA doesn't work. My Code: crashZone = ZONE:New( 'foobazbar' ) wreckSpawn = SPAWNSTATIC:NewFromStatic('C130', country.id.USA ) fireSpawn = SPAWNSTATIC:NewFromStatic('CrashSmoke-1', country.id.USA ) wreckSpawn:SpawnFromZone( crashZone , 200) :Explode(2,5) fireSpawn:SpawnFromZone( crashZone , 200 ) Thanks and best regards, Andreas EDIT: found this in my dcs.log: 2023-09-30 13:32:10.144 ERROR APP (Main): unknown static shape_name, category , type: big_smoke 2nd EDIT: Method Explode() doesn't work anymore on POSITIONABLE in MOOSE 2.7.22, this Method has vanished.. In 2.7.21 Explode() allready works. Edited October 1, 2023 by Atari800XL DCS MT, all maps except channel, FC3, F-16C Viper, F-15E, F/A-18C, AH-64D, F-5E, F-4E, P-51D, Spitfire, Fw-190D, MiG-21bis, L-39, AJS-37 Supercarrier, WWII-AP, CA, TrackIR5, F/A-18-Stick + Thrustmaster 16000, Stream Deck 8x4, 2x MFD Cougar Ryzen9 5950X SMT off, 64GB RAM, RTX 4070 SUPER TI, UWQHD 3440x1440, Win11+DCS from separate M.2
Solution Grimes Posted October 1, 2023 Solution Posted October 1, 2023 Use trigger.action.effectSmokeBig instead. https://wiki.hoggitworld.com/view/DCS_func_effectSmokeBig The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Atari800XL Posted October 2, 2023 Author Posted October 2, 2023 (edited) It works, 1001 Thanks! Now I can spawn random crashed static planes with effects, exactly what I wanted. Background: I'm learning MOOSE and generally DCS-scripting. For a trainingmission I have 100+ possible crashzones where I needed a crashed plane like below in the screenshot. Edited October 2, 2023 by Atari800XL DCS MT, all maps except channel, FC3, F-16C Viper, F-15E, F/A-18C, AH-64D, F-5E, F-4E, P-51D, Spitfire, Fw-190D, MiG-21bis, L-39, AJS-37 Supercarrier, WWII-AP, CA, TrackIR5, F/A-18-Stick + Thrustmaster 16000, Stream Deck 8x4, 2x MFD Cougar Ryzen9 5950X SMT off, 64GB RAM, RTX 4070 SUPER TI, UWQHD 3440x1440, Win11+DCS from separate M.2
Recommended Posts