I added second download for this project..
It has mouse buttons now..
also removed variable name and added bool for locked /unlocked.
For interact key use MBL or MBR for mouse buttons left/right
For interact key you can also use NONE- so door cant be interacted directly.
if door is locked by default then you dont have key for it..
..to give player a key variable must be set to 1..
..to open /close door with variable then you must set remote variable to 1..
Each door must have unique name so if your door name is for example GarageDoor1
then its KEY variable name will be GarageDoor1_key
and its remote variable name will be GarageDoor1_remote
Now you can use SetOrChange variable that is default action in Coppercube to set those variables to 1 to give key or control door with variable.
Make sure to delete old script and replace it with new script in scripts folder.
then its KEY variable name will be GarageDoor1_key
and its remote variable name will be GarageDoor1_remote
Now you can use SetOrChange variable that is default action in Coppercube to set those variables to 1 to give key or control door with variable.
Make sure to delete old script and replace it with new script in scripts folder.