@ m2design
Regarding XYZ location values
You are correct that LUA has many commands that return XYZ values. However, how do I get the XYZ value of a location that I am trying to move to?
I write scripts that move entities through a preset set of steps from one XYZ location to another. Thus far, the only way to find those :"move to" XYZ values is with a little script I wrote that displays the current XYZ location of the player during test play. I move the player to the place I want the entity to go in the next step, and use those values in my script. Just seems like it would be easier to display at least the X/Z position values in the editor, rather than transferring to test game play to get the numbers.
If anyone is interested, here is the script I referred to.
-- Script to display current X Y Z coordinates of the player/camera
local x1 = 0
local y1 = 0
local z1 = 0
function aabasicplayerxyzprompt_init(e)
end
function aabasicplayerxyzprompt_main(e)
x1=math.floor (g_PlayerPosX)
y1=math.floor (g_PlayerPosY)
z1=math.floor (g_PlayerPosZ)
Prompt("X= "..x1.." Y= "..y1.." Z= "..z1)
end
"THERE IS NO SPOON"
AMD 6300 6 core 3.5 ghz, Windows 8.1, 8GB ram, GTX 650 2GB ram