Hello, I am Gen. Henry Arnold. I am a content creator for a popular Arma 3 server.
The purpose of release is to improve the Arma 3 content creator code base.
Modify it to your mission requirements and all I ask in return is you provide credit to the author of the source material.
Implementing this function into your own mission allows for players to toggle automatic movement (walking, running, swimming) with a key bind so that they do not have to hold their W key down.
This function already includes cases for determining what kind of automatic movement should be done, taking into account things like: damage, terrain slope, weapons equipped, clothing, and surfaceIsWater.
The function provided has author comments explaining the purpose of the code.
If you find any improvements that can be made to this, please share them in the discussion. Download: https://github.com/Gen-Henry-Arnold/Arma-3-Functions/blob/main/autoMove/fn_autoMove.sqf The content provided is hosted on GitHub and subject to their TOS and the GNU General Public License v3.0