A simple question
#1

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?
Reply
#2

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
Reply
#3

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.
Reply
#4

TY JoeDaDude :*
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)