Moving an object
#1

ok so im trying to make an gate for the PD etc but the gate opens perfectly but when i press the key "H" to close the gate it doesn't move it anytime at all.. here is the coding i will be still trying to fix the error anyways here you go


PHP код:
    if(IsACop(playerid) && IsPlayerInRangeOfPoint(playerid61544.7363,-1627.0232,13.3672)) // LSPD Barrier
        
{
            if(!
SAPDBarrierStatus)
            {
                
SAPDBarrierStatus 1;//open
                  
MoveObject(SAPDBarrier1543.4048, -1625.59999.60825);
            }
            else
            {
                
SAPDBarrierStatus 0;//lock
                
MoveDynamicObject(SAPDBarrier1543.4048, -1625.599914.20353);
            }
            return 
1;
        } 
Reply
#2

Why you use MoveDynamicObject in the closing one
Reply
#3

Where is that code located?
Reply
#4

Fixed hahahaa im so stupid, i reviewed it and saw the issue
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)