[_code]
function testthis_init(e)
end
function testthis_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 300 then
boxAx = 500
boxBz = 500
boxx = g_Entity[e]["x"] + boxAx
boxz = g_Entity[e]["z"] + boxBz
boxy = GetGroundHeight(g_Entity[e]['x'],g_Entity[e]['z'])
SetPosition(e,boxx,boxy,boxz)
end
end
[_/code]
Can some one explain why this is not working and how can I get it working.
I have tried various ways of doing it but it just does not work.
I think it should work, but guess I am missing something.
What it should do is move an object when the player gets close.
Also why is only (MoveUp(e, v), MoveForward(e,v), MoveBackward(e,v)) in the globals?
Where is MoveLeft and MoveRight?
(Custom) Intel i7 3.3 Mhz. 16 GB fast ram. EVGA Nvidia 1050 Ti 4GB. Dell US27 2560 x 1440. Dell 24 1920 x 1080. Awesome.
Next G. Card EVGA GeForce GTX 970 Superclocked ACX 2.0 Gaming 4GB GDDR5 PCIe3.0 Graphics Card.
Would Like EVGA NVIDIA GeForce GTX 1080 8GB GDDR5X PCIe3.0 Graphics Card