SA-MP Forums Archive
A simple question - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A simple question (/showthread.php?tid=79839)



A simple question - Gamer007 - 31.05.2009

How can i get the MoveObject coordinates? Example i got

Код:
CreateObject(13592,-1363.201294,-179.693390,24.719044,2.5783,43.8304,344.4557);
and i want to move it to the left? How can i do this? I'm just asking how to get MoveObject coordinates that this Createobject would move to the specific position?


Re: A simple question - JoeDaDude - 31.05.2009

Go on your object editor, Do one gate when its closed, And another where u want it to move when its open, So you will have 2 gates, Now get the coords and the coords for the gatee wen closed,
Put
gate = CreateObject

ect

And then on moveobject look for the gate coord wen open and put

MoveObject(gate, x,y,z);

Il be happy to go into greater detail


Re: A simple question - Djiango - 31.05.2009

Just place another object with the same ID, where you want the object to be moved to.
Then get those coordinates.

Код:
 ___________
|      |
| 2  1  |
|___________|
Lets say the coordinates you have is 1.
Then place a similar object at 2, and get the coords.
Now you have the "move to" coords.

You could alternatively, just add/substract some from the X or Y axes.
And go by trial & error from there.

Joe was a little faster than me.


Re: A simple question - Gamer007 - 31.05.2009

TY JoeDaDude :*


Re: A simple question - MenaceX^ - 31.05.2009

You can also read abit in wiki.
https://sampwiki.blast.hk/wiki/CreateObject
https://sampwiki.blast.hk/wiki/MoveObject
I'd rather reading wiki than posting questions.