Jump to content

Spawning a static effect with MOOSE won't work


Go to solution Solved by Grimes,

Recommended Posts

Posted (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 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

Posted (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. 

DCS 2023-10-02 08-56-51.png

Edited 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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...