Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OnStart()
- {
- AddUserItemCallBack("", "single_use_master_key", "level_wood_1", "FUNCTION", true);
- }
- void OnEnter()
- {
- }
- void OnLeave()
- {
- }
- void FUNCTION(string &in item, string &in door)
- {
- SetLevelDoorLocked("level_wood_1", false);
- PlayGuiSound("unlock_door.snt", 100);
- RemoveItem("single_use_master_key");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement