SA-MP Forums Archive
Help with X,Y,Z maybe even streamer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with X,Y,Z maybe even streamer (/showthread.php?tid=295297)



Help with X,Y,Z maybe even streamer - oliverrud - 05.11.2011

So I got this problem with my script for some reason whether I move a thing x,y (havne't tested z) it goes to a side but also goes downwards.

What I do is following:
pawn Код:
MoveDynamicObject(Info[GetPVarInt(playerid,"Selected")][Object],Info[GetPVarInt(playerid,"Selected")][PosX]+value,0,0,0.5);
I set the value to like either 1 or 2 and it just starts going under the interior I have.


Re: Help with X,Y,Z maybe even streamer - CyNiC - 05.11.2011

This function gets the X and Y in side of player correctly: http://pastebin.com/YjBapCMf

If the area that you is working dont's 0, change it for the right Z coord on MoveObject.


Re: Help with X,Y,Z maybe even streamer - oliverrud - 05.11.2011

Yea it was that they I had 0 at moveobject lol didn't even realize, stupid fail cause its rather obvious.