Ah ha! Progress (thanks 50p)
I've managed to add my own coords, so I've now got the hay where I want it to be thanks to your
createObject ( 3374, x * -4 + (yourX), y * -4 + (yourY), z * 3 + (yourZ) )
Below where you say
has me stumped completly!When I run the gamemode on my MTA server, and connect to it fine, the hay is where I want it to be and ive changed player spawn points to get my guy to spawn near the hay, so thats good, but the hay doesn't moved (because ive not yet edited the calculations I presume)?
The server window reports a series of line errors, which are.. 80, 88, 96, 104, 112, 120, which ive quoted below...
80
if (move == 0) and (x ~= 1) and (free[x-1][y][z] == 0) then
88
elseif (move == 1) and (x ~= options.x) and (free[x+1][y][z] == 0) then
96
elseif (move == 2) and (y ~= 1) and (free[x][y-1][z] == 0) then
104
elseif (move == 3) and (y ~= options.y) and (free[x][y+1][z] == 0) then
112
elseif (move == 4) and (z ~= 1) and (free[x][y][z-1] == 0) then
120
elseif (move == 5) and (z ~= options.z) and (free[x][y][z+1] == 0) then
Now, im guessing that those are the lines of the calculations which of which some value needs to be changed as advised.. However, im totally stumped as to which.
Can some cleverer person than me advise me on how to continue?
Id be very greatful! Thank you.
EDIT: Doh! I missed out line 96 too (Updated above)