MoveObject please?
#1

Can anyone make me move to the gates?
order / gateo first gate to be given right and the second gate on left

CreateStreamObject (971, 1010.350769, -369.777283, 76.656952, 0.0000, 0.0000, 180.0000, 200.0);
CreateStreamObject (971, 1029.165527, -369.863403, 76.675407, 0.0000, 0.0000, 0.0000, 200.0);
Reply
#2

You need coordinates of closed gates and opened gates.
Reply
#3

and where can they take do not know where to get x, y, z
Reply
#4

How u got the coords of this then?

For object editing I should recommer MTA Map editor..

You can download it here http://multitheftauto.com/ ( Version 1.0.3 )

Greetz, Lex
Reply
#5

CreateObject(971, 1020.350769, -369.777283, 76.656952, 0.0000, 0.0000, 180.0000); gate 1
CreateObject(971, 1029.165527, -369.863403, 76.675407, 0.0000, 0.0000, 0.0000); gate 2


X , Y , Z
closed gate 1: 1004.2292, -370.5801, 73.1532
closed gate 2: 1042.0045, -369.7843, 73.8026
Reply
#6

Quote:
Originally Posted by Anabol
CreateObject(971, 1020.350769, -369.777283, 76.656952, 0.0000, 0.0000, 180.0000); gate 1
CreateObject(971, 1029.165527, -369.863403, 76.675407, 0.0000, 0.0000, 0.0000); gate 2


X , Y , Z
closed gate 1: 1004.2292, -370.5801, 73.1532
closed gate 2: 1042.0045, -369.7843, 73.8026
Top of your script:
new gate1;


under OngameModeInit:
gate1 = CreateObject(971, 1020.350769, -369.777283, 76.656952); gate 1



Under OnPlayerCommandText:
// this is for closing the gate

}
if (strcmp("/gate1close", cmdtext, true, 10) == 0)
{

MoveObject(gate1,1020.350769, -369.777283, 76.656952, 2.0);


return 1;

// this for open it

}
if (strcmp("/gate1open", cmdtext, true, 10) == 0)
{

MoveObject(gate1,1004.2292, -370.5801, 73.1532, 2.0);


return 1;




There is probaly something wrong. That is because you posted this really weird.
hard to understand. This is an example of your first gate
Reply
#7

He need 2 gates, so I will make them in the afternoon..

Greets, Lex
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)