joey2176 Posted December 15, 2009 Share Posted December 15, 2009 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 More sharing options...
Cipscis Posted December 15, 2009 Share Posted December 15, 2009 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 controlsIf 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 More sharing options...
joey2176 Posted December 16, 2009 Author Share Posted December 16, 2009 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 More sharing options...
joey2176 Posted December 16, 2009 Author Share Posted December 16, 2009 On trigger exit anybody? :) Link to comment Share on other sites More sharing options...
pkleiss Posted December 17, 2009 Share Posted December 17, 2009 OnTriggerLeave <--Link This will fire when the player leaves the trigger, so you can re-enable the combat controls with it. Link to comment Share on other sites More sharing options...
joey2176 Posted December 18, 2009 Author Share Posted December 18, 2009 Thanks pkleiss. Appreciate the help. Link to comment Share on other sites More sharing options...
Recommended Posts