Jump to content

Disable combat


joey2176

Recommended Posts

Hey everyone,

 

I want to disable the combat like when you enter Little lamplight, for my mod I'm working on.

 

Would this be a disable player controls script?

 

I looked through the Geck but couldn't find anything.

 

Just needs to be one interior cell that I created and only needs to happen the first time player

enters.

 

Joe

Link to comment
Share on other sites

In order to prevent the player from engaging in combat, you'll want to use DisablePlayerControls like so:

DisablePlayerControls 0 0 1 0 0 0 0; Disable combat controls

If you want this to happen when the player first enters a cell, you'll probably want to use a triggerbox with an OnTriggerEnter block.

 

Don't forget to call EnablePlayerControls later on to re-enable these controls.

 

Cipscis

Link to comment
Share on other sites

Thanks for the reply Cipscis.

 

Question: If I create a trigger box to cover the whole cell (both doors) for the Ontriggerenter,

would I need to create another box and script to enable the player controls upon leaving or would I just add another block to the orig trigger script? Does a trigger only fire once?

 

 

 

Ontriggerexit ?

 

what is the proper script for exit?

 

 

Thanks

 

joe the noob

Link to comment
Share on other sites

  • Recently Browsing   0 members

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