/Gate open help
#1

Hello,
I Decided to map something for my server and there is a gate on land and one under the top one.
(Gate 2 is under Gate 1)

How would I make it move the object Down?
This is Gate1: (Visible)
Код:
	CreateObject(980, -411.60000610352, 1361.6999511719, 31.200000762939, 0, 0, 18);
This is Gate2Invisible)
Код:
	CreateObject(980, -411.60000610352, 1362, 14.800000190735, 0, 0, 18);
Thanks guys.
Reply
#2

Get the positions of where you want the object be moved to. Then use MoveObject function.
Reply
#3

The positions are above, can you please show me an example or help?
Reply
#4

pawn Код:
new objectname;

public OnGameModeInit();
{
     objectname = CreateObject(980, -411.60000610352, 1361.6999511719, 31.200000762939, 0, 0, 18);
}
Now use MoveObject function.
pawn Код:
MoveObject(objectname, -411.60000610352, 1362, 14.800000190735, speed); // define the speed
Reply
#5

I know this is wrong some how, can you fix it please:
Код:
CMD:sasgate(playerid, params[]) {
	if(playerVariables[playerid][pGroup] == 5) {
	MoveObject(objectname, -411.60000610352, 1362, 14.800000190735, 1);
	{
	else if [pGroup] >= 5) retrun SendClientMessage(playerid, COLOR_RED, "You are not apart of the S.A.S!");
	}
	return 1;
}
Reply
#6

Anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)