GMS_RC/@GMS/addons/GMS/Compiles/Functions/fn_getIndexFromDifficulty.sqf

12 lines
261 B
Plaintext
Raw Normal View History

2023-09-23 14:05:31 +00:00
#include "\x\addons\GMS\Compiles\Init\GMS_defines.hpp"
2023-09-23 14:05:31 +00:00
params["_difficulty"];
private _return = 0; // Assign blue = 0;
2023-09-23 14:05:31 +00:00
switch(toLowerANSI(_difficulty)) do
{
case "red": {_return = 1};
case "green": {_return = 2};
case "orange": {_return = 3};
};
_return