Jump to content

Need suggestions on how to implement an idea for stealth a new stealth mechanic


trashgarbage666

Recommended Posts

EDIT: Whoops, messed up the title of the thread. That's cool, and in no way embarrassing. Very glad that I can't change it.

 

Hey guys!! So I had an idea that might make stealing from stores and casinos a lot more interesting and fun, but I'm a bit unsure of how to implement it, and was hoping to get some suggestions!

 

As I'm sure most of you are aware, being in an interior cell that is owned by a particular faction or NPC is considered trespassing unless that cell is a Public Area. And, if the owner or a relevant faction member sees you trespassing, they'll attack unless you leave quickly. In the GECK, if you're allowed in one room, then you're allowed anywhere in the entire building. However, in real life, only certain rooms or sections of a business tend to be gated off from the public. Staff rooms, maintenance closets, behind the counter where they keep the money, etc.

 

My idea is actually fairly simple, in theory. Just contain the area you want the NPCs to protect inside a primitive with a script attached to it that says "if the player is touching me, SetCellPublicFlag 0. If the player isn't touching me, SetCellPublicFlag 1". And the NPCs should take it from there!

 

I know you can assign a primitive to an Activator. I'm looking at one now, VMS53NoteTrigger, inside the Novac motel lobby. I suppose I could just create my own activator that mimics that one. I guess where I need the most help is that I'm not sure which script block I should use, and I've never written a script that requires the player to stand inside the attached object in order to trigger. Any suggestions on how to do that would be greatly appreciated!

 

Thanks for reading! :D

Edited by punchbattle
Link to comment
Share on other sites

After more searching, I stumbled onto the OnTriggerEnter and OnTriggerLeave script blocks. Turns out they do everything I need them to!

 

So... yeah! Guess I didn't need to make this thread after all, haha. Honestly, this was so easy to put together, and the results are so nice, that I'm kind of surprised something like this isn't in the base game.

Edited by punchbattle
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...