I ran into a problem over the weekend when using the
onsinglemapclick command, in particular the _pos value that is returned.
I wanted to do a simple "make smoke at the landing site that is determined by a single map click" script but I kept running into a problem:
It appears that when the object is setposed to the _pos location, it is at [x,y,sealevel] when I need it to be [x,y, groundlevel].
I was trying to incorporate the
Active Smoke Signal by Sterling Silver but I ran into the above problem.
Can anyone
a) confirm the format of the array returned with the _pos value (is it [x,y] or [x,y, z] )
and
b) give me a direct or workaround solution to my problem?
My thought was to find the nearest object to the map click point and take and add that "z" value to the _pos array to get an invis H to be close to the surface of the map but I am just not bright enough to make it work.
Does anyone know how to get this working correctly?
Thanks in advance!
Wadmann