Question: How can I implement the "frisking" present

Post » Wed Nov 30, 2011 2:29 pm

^Topic

I'm looking to have the player stripped similar to a Casino, keeping holdout weapons if he or she has them. I've looked at Casino dialogue, but can't make much sense of it.

Thanks in advance!

P.S. I'm pretty good at scripting and very familiar with the GECK, so you don't really have to take me from square one...
User avatar
Krystina Proietti
 
Posts: 3388
Joined: Sat Dec 23, 2006 9:02 pm

Post » Wed Nov 30, 2011 11:48 am

I don't know the exact answer. But, in most cases if there is an existing item/npc with the behavior, I can find it in geck and look at the script. Have you tried to load one of the casino interiors, find one of the NPCs that frisks, and look at the related script? Even if it doesn't make much sense, you should just be able to copy the script itself.
User avatar
*Chloe*
 
Posts: 3538
Joined: Fri Jul 07, 2006 4:34 am

Post » Wed Nov 30, 2011 9:46 am

Like I said, I looked into several scripts and can't figure it out yet. The problem is that the process is a weaving of dialogue and script,, so its extremely difficult to follow...
User avatar
sally coker
 
Posts: 3349
Joined: Wed Jul 26, 2006 7:51 pm

Post » Wed Nov 30, 2011 1:21 pm

Okay, I may have found it. This line of code seems to be what I am looking for:
player.RemoveAllTypedItems vGOMPlayerEquipmentContainer 1 0 40 NVImprovedHoldoutWeapons


where the improved weapons list is the exemptions list
User avatar
Lady Shocka
 
Posts: 3452
Joined: Mon Aug 21, 2006 10:59 pm


Return to Fallout: New Vegas