A downloadable mod

This door can be opened with keypress (for example "E")
this door can be opened with trigger(for example pushbutton or leveler)
Door can be locked or unlocked.. key can be added very simple.
In example that comes with download you see how it can be used.

Updated 80525
Added second download with mouse button support and actions on open/close/fail

Updated 1 day ago
StatusReleased
CategoryGame mod
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
Author5v3n
Tagscoppercube, door, key

Download

Download
svcDoorv2.zip 1.9 MB
Download
svcDoor80525.zip 1.3 MB

Comments

Log in with itch.io to leave a comment.

(1 edit)

How about adding, on mouse button click option? and play sound option?

Yes its good to have these options- somewhere i have script with these options-will update this project soon.

Thanks alot!  :)

(1 edit)

I actually have this possibility added to the current version.

There is special variable that you can use  "_remote"

So if you have door with name DOOR1 then variable that you can use is DOOR1_remote

What you can do with it is: add behaviour to the door:
IF klicked then do something..
SetChangeVariable DOOR1_remote to 1
Now door should open if you klicked on it.

With same method you can make buttons to open door and many more things.

Anyways i update this project so it can be used with mouse klick directly.

(2 edits)

You forgot to put the behaviour_svcDoor2.js file in, but while opening your .ccb file it installed in the document foled instantly  :D

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.

(-1)

Скачал, проверил. Всё работает замечательно. Благодарю!