Angle of gate won't move
#1

Object won't move. It spawns, it loads perfectly, just not sure why the angle won't move.

The object is ID 968, but i don't know what's wrong:

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, GateInfo[gate][gRange], GateInfo[gate][gX], GateInfo[gate][gY], GateInfo[gate][gZ]))
                {
                    if(GateInfo[gate][gModel] == 968)
                    {
                        if(GateInfo[gate][gStatus] == STATUS_GATE_CLOSED)
                        {
                            MoveDynamicObject(GateInfo[gate][gModel], GateInfo[gate][gX], GateInfo[gate][gY], GateInfo[gate][gZ], GateInfo[gate][gRX], GateInfo[gate][gRY], GateInfo[gate][gRZ]+90, 7.0);
                            GateInfo[gate][gStatus] = STATUS_GATE_OPEN;
                        }
                        else if(GateInfo[gate][gStatus] == STATUS_GATE_OPEN)
                        {
                            MoveDynamicObject(GateInfo[gate][gModel], GateInfo[gate][gX], GateInfo[gate][gY], GateInfo[gate][gZ], GateInfo[gate][gRX], GateInfo[gate][gRY], GateInfo[gate][gRZ]-90, 7.0);
                            GateInfo[gate][gStatus] = STATUS_GATE_CLOSED;
                        }
                    }
                    else
                    {
                        if(GateInfo[gate][gStatus] == STATUS_GATE_CLOSED)
                        {
                            MoveDynamicObject(GateInfo[gate][gModel], GateInfo[gate][gX], GateInfo[gate][gY], GateInfo[gate][gZ], GateInfo[gate][gRX], GateInfo[gate][gRY], GateInfo[gate][gRZ]+90, 7.0);
                        }
                        else if(GateInfo[gate][gStatus] == STATUS_GATE_OPEN)
                        {
                            MoveDynamicObject(GateInfo[gate][gModel], GateInfo[gate][gX], GateInfo[gate][gY], GateInfo[gate][gZ], GateInfo[gate][gRX], GateInfo[gate][gRY], GateInfo[gate][gRZ]-90, 7.0);
                        }
                    }
                }
Reply


Messages In This Thread
Angle of gate won't move - by sammp - 04.11.2014, 20:46
Re: Angle of gate won't move - by Vince - 04.11.2014, 20:59
Re: Angle of gate won't move - by sammp - 04.11.2014, 21:00
Re: Angle of gate won't move - by sammp - 04.11.2014, 21:05
Re: Angle of gate won't move - by Pottus - 04.11.2014, 21:14
Re: Angle of gate won't move - by sammp - 05.11.2014, 14:53

Forum Jump:


Users browsing this thread: 2 Guest(s)