MoveObject please? -
Anabol - 03.02.2010
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);
Re: MoveObject please? -
MadeMan - 03.02.2010
You need coordinates of closed gates and opened gates.
Re: MoveObject please? -
Anabol - 03.02.2010
and where can they take do not know where to get x, y, z
Re: MoveObject please? -
WebGh0st - 03.02.2010
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
Re: MoveObject please? -
Anabol - 03.02.2010
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
Re: MoveObject please? -
bartje01 - 03.02.2010
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
Re: MoveObject please? -
WebGh0st - 07.02.2010
He need 2 gates, so I will make them in the afternoon..
Greets, Lex