Angle of gate won't move
#6

Quote:
Originally Posted by Pottus
Посмотреть сообщение
Repost your code I know you will have issues with this...

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);

You don't need -90 since it has to move to it's return position.
Sorry I don't understand what you mean?

If you're looking for the code here it is:

pawn Код:
if(gate != -1)
            {
                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]+0.001, 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]-0.001, 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]+0.001, 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]-0.001, 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: 3 Guest(s)