26.09.2015, 16:31
Hello, i have created a closed barrier and a script which should open a barrier in some time. But the barrier instantly changes possition from _ to |. how to make it move slowly?
Код:
if(IsPlayerInRangeOfPoint(playerid, 10.0 , 1544.70215, -1630.84375, 13.21280))
{
if(player[playerid][job] == 1)
{
if(!gates[22])
{
MoveDynamicObject(barrier, 1544.70215, -1630.84375, 13.21280, 0.1, 0.00000, 0.00000, 90.00000);
gates[22] = true;
}
else
{
MoveDynamicObject(barrier, 1544.70215, -1630.84375, 13.21280, 0.1, 0.00000, 90.00000, 90.00000);
gates[22] = false;
}
}
return 0;
}


