Jump to content

Recommended Posts

I am very new to editing and scripting and i host small events on my own PC. Everybody that plays wants me to disable stamina and everything i try does not work. (i use ace as well). 

Share this post


Link to post
Share on other sites

Hello, Welcome to Bis forums!

 

Do the following:

  1. Open a new notepad doc and name it ---->  initPlayerLocal.sqf
  2. In the this new script put the following:

 

// Stamina - setting this to false disables the stamina

player enablestamina false;
player addEventHandler ["Respawn", {player enablestamina false}];

 

//Sway - the lower the number the less sway side to side you will have

player setCustomAimCoef 0.2;
player addMPEventhandler ["MPRespawn", {player setCustomAimCoef 0.2}];

 

//Recoil - the lower the number the less recoil your gun will have.

player setUnitRecoilCoefficient 0.2;
player addEventHandler ["Respawn", {player setUnitRecoilCoefficient 0.2}];

 

Save, and then move the initplayerlocal.sqf to your mission's folder where the mission.sqm is.

This works in sp and mp. Hope that works for you and helps, Cheers!

  • Like 3

Share this post


Link to post
Share on other sites

The txt is not converting to sqf and is still as a txt is this normal?

Share this post


Link to post
Share on other sites
1 hour ago, Wessal69 said:

The txt is not converting to sqf and is still as a txt is this normal?

 

Enable view filename extensions in Windows and rename the file manually. 

  • Like 2

Share this post


Link to post
Share on other sites
8 hours ago, Wessal69 said:

The txt is not converting to sqf and is still as a txt is this normal?

Normal for notepad if you dont have the file extensions enabled, so what mrcurry said.

 

Ideally you want only the initPlayerLocal.sqf  not  initPlayerLocal.txt.sqf

game wont read it then, so either https://www.thewindowsclub.com/show-file-extensions-in-windows

or use notepad++ https://notepad-plus-plus.org/

 

Once you get it figured out and test it out, suggest you throw down a unit in the editor, save it, and then go to the mission folder put the sqf in there,

and then preview the mission, and the stamina should be off along with the sway will be very subtle, and recoil when you shoot will be same,

not really noticeable.

 

If you only want just the code for the stamina then either remove the other 2 codes, or add 2 brackets ----> // in front of each code which shuts them off.

Hope that helps. Btw love your avatar 😉

  • Like 2

Share this post


Link to post
Share on other sites

The show filename one worked like a charm. Thank you guys very much

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×