Code: Select all
local x1= player.X
local y1 = player.Y
local z1 = player.Z
First basic is :
Code: Select all
array1 = {324324,"I want beef", true, 567}
e.g.
Code: Select all
local output = array1[2];
print(output);
You can also use labels as index like in php;
Code: Select all
array1["MyPony"] = " Johnny";
--- the crack point is I think is this:
array1 = { myfirstPony = " Johnny", secondPony = "Mulz", thirdPony="Mulzwasnussine" };
-- This left side is the label , the right side the value there are 2 ways to access them which are equal.
output1 = array1.myfirstPony;
--or
output1 = array1["myfirstPony"];
In the waypoint file you must check your position than compare that and load either a waypoint tag or a new waypoint file which match with the position you found.