Darcaem Posted January 8, 2024 Posted January 8, 2024 (edited) Hi Using Moose's SPAWNSTATIC module I'm trying to spawn smoke on demand on a specific location, but I'm doing something wrong as it always spawns at 0 feet. To test it I tried to spawn a random static plane, and it does spawn correctly at ground level. This is the code I'm using function userCreatedMarker(Event) trigger.action.outText(Event.pos.x..", "..Event.pos.y..", "..Event.pos.z, 15) SPAWNSTATIC:NewFromStatic("Static smoke and fire small-1-1")--Static MQ-1A Predator-2") :SpawnFromCoordinate(COORDINATE:New(Event.pos.x, Event.pos.y, Event.pos.z)) end When using the smoke's static name ("Static smoke and fire small-1-1") it spaws at 0 feet. Using the random static unit ("Static MQ-1A Predator-2") it spawns correctly at ground level. For testing it, the above function is called on a handler when a new marker is created on the F10 map. And when testing the random static plane, where it works fine: Do you see what I'm missing? Edited January 8, 2024 by Darcaem
Solution buur Posted January 8, 2024 Solution Posted January 8, 2024 Fire and smoke has it own command to spawn on a specific coordinate. Try this: https://flightcontrol-master.github.io/MOOSE_DOCS_DEVELOP/Documentation/Core.Point.html##(COORDINATE).BigSmokeAndFire 1
Recommended Posts