Blockland Forums > Help
how do you make a specific key do an event? (help with events)
(1/2) > >>
c4539:
i tried to make a certain key open a door but how do i set a certain type of key to open the door? thats my question.
Blocki:
What do you kean with "key"
Like the item or a key on your keyboard
Blocki:
mean*

If you mean the key item, then paint the door or the switch in the co,or of the key you want and use the onKeyMatch event
TrollBoat:
I think he means the item key because I'm pretty sure the other way would take scripting
Goth77:

--- Quote from: TrollBoat on December 12, 2012, 05:52:52 PM ---I think he means the item key because I'm pretty sure the other way would take scripting

--- End quote ---
Not if you have VCE: A yellow key could very well be a blue key in disguise

OnKeyMismatch -> Client VCE If Var -> KeyName = 1
OnVarTrue -> door -> toggle
OnVarFalse -> Client Msg -> "WRONG KEY BITCH"

The only thing you have to watch for is to make sure you set your MOD VAR for the key.
Place a brick down, wrench it

OnActivate -> Client VCEMODVAR -> KeyName SET 1

There you now have a custom key! Also the door has to be the opposite color of the key (which gives you more options opposed to only 4 colors anyways)

Good Luck
Navigation
Message Index
Next page

Go to full version