Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- +=====================+
- | Door Switch Demo |
- | Made by Jamie Hodge |
- | Date: 05-02-2014 |
- +=====================+
- */
- #include "zcommon.acs"
- INT JamiesDoor;
- Script 1 (Void) // to be placed on door switch
- {
- If(!CheckInventory("YellowCard"))
- {
- AmbientSound("Beep1",127);
- Print(s:"Yellow Keycard Required");
- }
- Else
- If (JamiesDoor == 0)
- {
- JamiesDoor = 1;
- Print(s:"Door is now unlocked. You may enter the room now!");
- SetLineTexture(1,Side_Front,Texture_Middle,"SW1JH");
- }
- }
- Script 2 (Void) // to be placed on polyobject door
- {
- If (JamiesDoor == 0)
- {
- Print(s:"Access Denied. Please use security card, yellow level to enter!");
- }
- Else
- {
- AmbientSound("Beep2",127);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement