Ok, I'm working on a SP undercover map and was wondering if the following situtation was possible to script.
I have a sentry next to a locked door who checks your level 1 papers. What I want to happen is, if he accepts your papers, the door unlocks, but if he denys them and attacks you, the door remains locked.
Anyone have any Ideas?
Undercover Question
Moderator: Moderators
- Major Pain
- Moderator
- Posts: 346
- Joined: Fri Mar 07, 2003 3:22 pm
- Location: Epe, NL
- Contact:
When you press i on the keyboard and make an ai a sentry there is a disguise_accept_thread box that shows on the right side of the dialog box . You can use that to run a thread in your level script to open the locked door and/or find out the level of papers that the player has and make the ai attack or not .
