02.07.2016, 12:23
Quote:
Have a global variable and set it to true before moving the object.
In OnObjectMoved callback, check if the object was the gate and set it to false. In OnPlayerKeyStateChange, check if the variable is set to false (not moving) and only then open/close the /gate (move the object basically) again. |
new bool:DOORMODE = false; //
new bool:DOORMODE2 = false; //
new POLICEGATE[2];
Do you have example, so i can understand better? :)