vmroche Posted March 16 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!
SKKmods Posted March 16 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)
Recommended Posts