vmroche Posted March 16 Share Posted March 16 Hi, I need to set a trigger box where the Player cannot fire his weapon. Can this be done? It's an area where I need to prevent the player from firing, until he leaves the trigger box. I need the player to maintain their weapon, just not be able to fire it in that area. I cannot find a sustitute for DisablePlayerFiring() that Skyrim and Fallout 4 has, I need something like this, but for Starfield. This is a script for Skyrim or Fallout 4, but Starfield does not compile it, due to "DisablePlayerFiring()" not existing in this game. Event OnTriggerEnter(ObjectReference akActionRef) if akActionRef == Game.GetPlayer() DisablePlayerFiring() endif EndEvent Event OnTriggerLeave(ObjectReference akActionRef) if akActionRef == Game.GetPlayer() EnablePlayerFiring() endif EndEvent Thank you very much for all your help! Link to comment Share on other sites More sharing options...
SKKmods Posted March 16 Share Posted March 16 DisablePlayerFiring() is not a native function in the 3 installs of Fallout4 CreationKit I have. Using an InputEnableLayer to disable combat is in both Fallout4 and Starfield https://falloutck.uesp.net/wiki/InputEnableLayer_Script look at EnableFighting() or DisablePlayerControls(abFighting) Link to comment Share on other sites More sharing options...
vmroche Posted March 17 Author Share Posted March 17 Thanks! I'll check that out Link to comment Share on other sites More sharing options...
vmroche Posted March 18 Author Share Posted March 18 It worked, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts