Darcaem Posted January 8 Share Posted January 8 (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 by Darcaem Link to comment Share on other sites More sharing options...
Solution buur Posted January 8 Solution Share Posted January 8 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now