31.07.2018, 22:32
Hi, i m trying to make a door and i can make the door open, but i want to get the door closed at the position that the door was.. but i can 't get it work.. anyone know how to do it?
if (IsPlayerNearDynamicObject(playerid, Doors[doorls][0]))
{
SetDynamicObjectRot(Doors[doorls][0], 0, 0, 90);
Doors[doorOpen][0] = true;
SendErrorMessage(playerid, "The door has been opened !");
}
but i want to
GetDynamicObjectRot(Doors[doorls][0]; and save it into variable to use
SetDynamicObjectRot again.. how can i do to close the door?
How can i know the original rotate position of door and show it?
thanks !
if (IsPlayerNearDynamicObject(playerid, Doors[doorls][0]))
{
SetDynamicObjectRot(Doors[doorls][0], 0, 0, 90);
Doors[doorOpen][0] = true;
SendErrorMessage(playerid, "The door has been opened !");
}
but i want to
GetDynamicObjectRot(Doors[doorls][0]; and save it into variable to use
SetDynamicObjectRot again.. how can i do to close the door?
How can i know the original rotate position of door and show it?
thanks !