Movegate Errors
#2

pawn Код:
switch(Open)//Check whether the gate opened or closed
        {
            case true://If the gate opened
            {
                MoveObject(Gate,1428.6456, 242.0033, 20.3020,4);//Close the gate
                Open = false;//false for closed
            }
            case false://If the gate closed
            {
                MoveObject(Gate,1426.5259, 237.4716, 20.3020,4);//Open the gate
                Open = true;//true for opened
            }
        }
You also need to make Gate = CreateObject(...) //The object you're moving.
Reply


Messages In This Thread
Movegate Errors - by Joshswag - 07.11.2012, 06:31
Re: Movegate Errors - by cosbraa - 07.11.2012, 06:35
Re: Movegate Errors - by Joshswag - 07.11.2012, 06:37
Re: Movegate Errors - by cosbraa - 07.11.2012, 06:40
Re: Movegate Errors - by Joshswag - 07.11.2012, 06:49
Re: Movegate Errors - by Joshswag - 07.11.2012, 06:51
Re: Movegate Errors - by cosbraa - 07.11.2012, 07:07
Re: Movegate Errors - by Joshswag - 07.11.2012, 07:20
Re: Movegate Errors - by cosbraa - 07.11.2012, 07:22
Re: Movegate Errors - by Joshswag - 07.11.2012, 07:27

Forum Jump:


Users browsing this thread: 1 Guest(s)