Wessal69 1 Posted July 28, 2019 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
Gunter Severloh 4051 Posted July 28, 2019 Hello, Welcome to Bis forums! Do the following: Open a new notepad doc and name it ----> initPlayerLocal.sqf 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! 3 Share this post Link to post Share on other sites
Wessal69 1 Posted July 28, 2019 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
mrcurry 496 Posted July 28, 2019 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. 2 Share this post Link to post Share on other sites
Gunter Severloh 4051 Posted July 28, 2019 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 😉 2 Share this post Link to post Share on other sites
Wessal69 1 Posted July 28, 2019 The show filename one worked like a charm. Thank you guys very much 1 Share this post Link to post Share on other sites