so, i've got a script and all it does is read from a mysql database for parameters to a CreateObject function each heartbeat. i use a webform to populate this mysql db with creatures and other placeables.
the in-game function is very dumb - it relies upon the webform completely for the appropriate parameters to CreateObject (including the location vector).
the problem i've run into is this: i don't know how to handle the z axis. x and y are easy, since i've dumped the minimaps from the module and can calculate them from the mouse clicks on the bitmap. but i don't have a way of figuring out the z axis, so i've just been using 0.
that worked fine for awhile, until i tried to spawn something on a hill. actually, a creature object was still fine, since they kind of "fly" in from the sky and land on whatever hill is at the x,y location.
placeables, however, are a problem. they are still spawned at 0 on the z axis, which means they're now inside the hills and whatnot.
now for the question: is there a way to get my desired action? that placeables show up on the "ground" of whatever x,y vector i give them? can they just "fall down" and land on whatever z axis is there? is there a way to calculate (in game) what the z axis of the ground will be? or perhaps an even more clever solution?
thanks guys
'>