Question: How can I implement the "frisking" present

Post » Mon Jan 03, 2011 1:58 am

^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
Alexandra Louise Taylor
 
Posts: 3449
Joined: Mon Aug 07, 2006 1:48 pm

Post » Mon Jan 03, 2011 3:41 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
+++CAZZY
 
Posts: 3403
Joined: Wed Sep 13, 2006 1:04 pm

Post » Mon Jan 03, 2011 5:21 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
Bonnie Clyde
 
Posts: 3409
Joined: Thu Jun 22, 2006 10:02 pm

Post » Sun Jan 02, 2011 10:06 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
Campbell
 
Posts: 3262
Joined: Tue Jun 05, 2007 8:54 am


Return to Fallout: New Vegas