Knock down - Global-Conflicts-ArmA/Olsen-Framework-Arma-3 GitHub Wiki
Description
The knock_down module allows mission makers to give the ability to players so that they can knock down other players with a keypress.
Usage
- Go to modules>module.sqf and enable the knock_down module.
- Go to modules>knock_down>settings.sqf
In the settings file you find the following lines.
GVAR(KNOCKDOWN_TEAMS) = [blufor];
blufor
- This is the side that can use the knock down script. You can have several sides like so = [blufor,opfor,indfor,civilian]
GVAR(KNOCKDOWN_WEAPONS) = ["rhs_weap_akm", "UK3CB_BAF_L85A2_RIS_AFG"];
"rhs_weap_akm", "UK3CB_BAF_L85A2_RIS_AFG"
- These are the list of primary weapon classnames that you wish the player to only be able to knock down with. This stop players knocking down without a weapon, or you can leave it blank to allow knock down while unarmed.
GVAR(KNOCKDOWN_REVIVE_ACTION) = true;
true
- If set to true, this will allow a players who has been knocked down to be picked up by another player. Choose been true
for on or false
for off.
GVAR(KNOCKDOWN_KEY) = DIK_F2;
DIK_F2
- This is the key press to knock people down. A full list of DIK codes can be found here.
GVAR(KNOCKDOWN_KEY_SHIFT) = true;
true
- whether or not the SHIFT key needs to press in combination with the above KNOCKDOWN_KEY. Use true
or false
GVAR(KNOCKDOWN_KEY_CONTROL) = false;
false
- whether or not the CTRL key needs to press in combination with the above KNOCKDOWN_KEY. Use true
or false
GVAR(KNOCKDOWN_KEY_ALT) = false;
false
- whether or not the ALT key needs to press in combination with the above KNOCKDOWN_KEY. Use true
or false