Author Topic: How to use Pit traps  (Read 386 times)

Legacy_Terrorble

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
How to use Pit traps
« on: May 01, 2011, 05:50:05 pm »


               Under Placeables|Custom|Secret Object several pit trap placeables exist.
The triggers are under Triggers|Custom|Traps

I put down the pit trap placeable, paint one of the triggers around its edges, created the WP in the destination area for the player to fall to, but have some problems. 

The pit traps are not concealed when I enter.  Our OnModuleLoad script is custom and probably isn't running the part that handles that... anyone know where I find that part?

I also see the OnTrapTriggered script (crpt_pittrp_ott) looks for something with a tag of SCPIT and for a localstring of RESREF on that object.  The pit placeables have a different TAG, and do not have a RESREF string set on them.

I'd prefer to use this pre-existing stuff as opposed to adding several more placeables and scripts by creating my own system for it, any help is appreciated.
               
               

               
            

Legacy_Terrorble

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
How to use Pit traps
« Reply #1 on: May 01, 2011, 11:45:51 pm »


               I think I got it.  I dug the code that hides the traps out of the OnModLoad from the startermod and am incorporating it into my OnAreaEnter.  Without seeing that part, it seems like the placeable tag and other stuff does not properly fit the trap script.