Jump to content

Collision marker trigger


GowF3nv

Recommended Posts

Im a mod I'm working on, I have seperate areas for men and women. I was thinking of making something that triggered a collision marker to turn off depending what gender they are, to allow them into the area.

 

I assume this would be a script right? Would I use some physical trigger, like the raven rock laser tripwire? Thanks in advance!

Edited by GowF3nv
Link to comment
Share on other sites

GowF3nv - Hello!

"I assume this would be a script right? Would I use some physical trigger, like the raven rock laser tripwire? Thanks in advance!"

Yes, you'd use a script to detect the sex of the player & open the area if they're the correct one.

The script function Player.GetIsSex would probably do it.

Depending on exactly what you're doing, there's a simple script that attaches to a door that can be set to only allow the sex you choose to enter, the very first one here:

http://geck.bethsoft.com/index.php/Useful_Scripts

A variation of that could be used to disable an invisible collision marker but an invisible barrier that stops you entering is a little less immersive than a restricted door. Depends on what effect you're after.

You can even attach a version of that script to a trigger zone, info on creating a trigger primitive:

http://geck.bethsoft.com/index.php/Creating_Primitives

That would allow detection of the players sex when they enter an invisible area (the trigger box with a custom script attached).

Disscusion of attaching a script to a trigger here:

http://geck.bethsoft.com/index.php/Bethsoft_Tutorial_Basic_Quest#Trigger_Script

Collision boxes/planes/spheres are created in the same way as described there, you just use one of the three collision buttons at the top of GECK (right at the end with C on them).

Collision boxes will stop the player from entering & can be deactivated from within a sript or have an enable parent.

Hope this helps!

Prensa

Link to comment
Share on other sites

Hey, thanks! This helped a lot. I had already found the door script page, but I needed the second one you posted, to divide an area by gender.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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