Advertisement
Hodge-1053

Door Demo ACS Script

Dec 31st, 2014
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  
  3. +=====================+
  4. | Door Switch Demo    |
  5. | Made by Jamie Hodge |
  6. | Date: 05-02-2014    |
  7. +=====================+
  8.  
  9. */
  10.  
  11. #include "zcommon.acs"
  12.  
  13. INT JamiesDoor;
  14.  
  15. Script 1 (Void)  //  to be placed on door switch
  16. {
  17.   If(!CheckInventory("YellowCard"))
  18.   {
  19.     AmbientSound("Beep1",127);
  20.     Print(s:"Yellow Keycard Required");
  21.   }
  22.  
  23.   Else
  24.  
  25.   If (JamiesDoor == 0)
  26.  
  27.   {
  28.     JamiesDoor = 1;
  29.     Print(s:"Door is now unlocked. You may enter the room now!");
  30.     SetLineTexture(1,Side_Front,Texture_Middle,"SW1JH");
  31.   }
  32. }
  33.  
  34. Script 2 (Void)  // to be placed on polyobject door
  35. {
  36.   If (JamiesDoor == 0)
  37.   {
  38.     Print(s:"Access Denied.  Please use security card, yellow level to enter!");
  39.   }
  40.  
  41.   Else
  42.  
  43.   {
  44.     AmbientSound("Beep2",127);
  45.   }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement