How to make a door lock when entering an area?
My script right now is:
void doorscare(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_3", true, true);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false); PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
}
What do I add to make the door lock as well?
Also, if a door is locked and a monster breaks it down you can get through it after its broken, right? What I want to do is lock the door behind the player, have them walk around the room and then have a monster spawn right outside the door.
(This post was last modified: 01-30-2012, 04:55 AM by MissMarilynn.)
|