GMS_RC/@GMS/addons/GMS/Compiles/Functions/fn_getIndexFromDifficulty.sqf
2023-09-23 10:05:31 -04:00

12 lines
352 B
Plaintext

#include "\GMS\Compiles\Init\GMS_defines.hpp"
params["_difficulty"];
//diag_log format["getIndexFromDifficult: _dificulty = %1 | typeName _difficulty = %2",_difficulty, typeName _difficulty];
private _return = 0;
switch(toLowerANSI(_difficulty)) do
{
case "red": {_return = 1};
case "green": {_return = 2};
case "orange": {_return = 3};
};
_return