13.08.2015, 00:14
To help you learn, check to see if the player is at either position (open/close). Then get the objects position. is the object in the opened position, or is the object in the closed position. Then, move the object to the opposite position depending on the current position of the object.
Or, just set a variable to the gate (Opened = true/false) and check for that variable upon using "/cop".
Or, just set a variable to the gate (Opened = true/false) and check for that variable upon using "/cop".