Jump to content

Spawn Big smoke static: altitude is always 0


Go to solution Solved by buur,

Recommended Posts

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.

imagen.png

imagen.png

And when testing the random static plane, where it works fine:

imagen.png

imagen.png

 

Do you see what I'm missing?


Edited by Darcaem
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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