Undercover Question

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
matt_moh
Sergeant
Posts: 65
Joined: Sat Feb 08, 2003 12:04 am

Undercover Question

Post 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?
User avatar
Major Pain
Moderator
Posts: 346
Joined: Fri Mar 07, 2003 3:22 pm
Location: Epe, NL
Contact:

Post 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...
.MAP Administrator
Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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 .
matt_moh
Sergeant
Posts: 65
Joined: Sat Feb 08, 2003 12:04 am

Post 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.
Post Reply