Mudbill

Secret Bookshelf Script (Amnesia)

Mar 3rd, 2013
821
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void MoveShelf(string &in asEntity, int alState)
  2. {
  3. if (GetLocalVarInt("Check") == 0)
  4. {
  5. if (alState == 1)
  6. {
  7. SetMoveObjectState("Shelf", 1);
  8.  
  9. PlaySoundAtEntity("", "quest_completed.snt", "Shelf", 0, false);
  10. PlayMusic("01_puzzle_passage.ogg", false, 1.2, 0, 10, false);
  11.  
  12. SetLocalVarInt("Check", 1);
  13.  
  14. return;
  15. }
  16. }
  17. }
RAW Paste Data