mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
387 B
Plaintext
21 lines
387 B
Plaintext
|
#include "script_component.hpp"
|
||
|
/*
|
||
|
* Author: LinkIsGrim
|
||
|
* Check if weight can be carried while running
|
||
|
*
|
||
|
* Arguments:
|
||
|
* 0: Weight <NUMBER>
|
||
|
*
|
||
|
* Return Value:
|
||
|
* Can the weight be carried while running? <BOOL>
|
||
|
*
|
||
|
* Example:
|
||
|
* [500] call ace_dragging_fnc_canRun_carry
|
||
|
*
|
||
|
* Public: No
|
||
|
*/
|
||
|
|
||
|
params ["_weight"];
|
||
|
|
||
|
GVAR(allowRunWithLightweight) && {_weight <= GVAR(maxWeightCarryRun)}
|