Gates that close automatically
#1

I have a couple gates that can open and close using the same command, but i was wondering how you create a gate that opens by using a command and closes automaticly.
Reply
#2

Use a timer.
Reply
#3

in gate command after the moveobject to open the gate

pawn Код:
SetTimer("closegate", 10000, 0); // 10000 opens it for 10 seconds
then make a new public like:

pawn Код:
public closegate()
{
    MoveObject(object,1273.041992,-1270.346191,11.955486, 3.00);
    return 1;
}
so when the timer is done, it gets the closegate public we made, and it starts it.
Reply
#4

It works, thanks for the help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)