Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OnStart()
- {
- SetPlayerSanity(50);
- AddUseItemCallback("", "Key", "Door", "UseKeyOnDoor", true);
- }
- void UseKeyOnDoor(string &in asItem, string &in asEntity)
- {
- SetLevelDoorLocked(asEntity, false);
- PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
- RemoveItem(asItem);
- GiveSanityBoostSmall();
- }
- -------------------------------------------------
- -----------------Second Level--------------------
- -------------------------------------------------
- void InteractArea(string &in asEntity)
- {
- FadeOut(2);
- AddTimer("", 2, "LoadMap");
- }
- void LoadMap(string &in asTimer)
- {
- ChangeMap("Level4_1.map", "Spawn", "", "");
- }
- -------------------------------------------------
- -------------extra_english.lang------------------
- -------------------------------------------------
- <CATEGORY Name="Inventory">
- <Entry Name="ItemName_KeyDesc">A Key</Entry>
- <Entry Name="ItemDesc_KeyDesc">It's for unlocking a door.</Entry>
- </CATEGORY>
- <CATEGORY Name="Sign">
- <Entry Name="Door1">It's Locked.</Entry>
- <Entry Name="Door2">It's Blocked.</Entry>
- </CATEGORY>
- <CATEGORY Name="Levels">
- <Entry Name="Door1">Orb Room</Entry>
- <Entry Name="Door2">Spawn Room</Entry>
- </CATEGORY>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement