Page 1 of 1

Undercover Question

Posted: Thu Nov 20, 2003 8:40 pm
by matt_moh
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?

Posted: Thu Nov 20, 2003 8:53 pm
by Major Pain
It seems that you have set the papers to level 2. And your sentry only wants the level 1 papers I guess...

Posted: Fri Nov 21, 2003 12:10 am
by bdbodger
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 .

Posted: Fri Nov 21, 2003 2:21 am
by matt_moh
Ok, thanks for helping guys. Bdbodger, that was exactly what I was looking for. I'll give it a try to see if it works.