diff --git a/functions/Other/fn_mapImage.sqf b/functions/Other/fn_mapImage.sqf new file mode 100644 index 0000000..0de42d7 --- /dev/null +++ b/functions/Other/fn_mapImage.sqf @@ -0,0 +1,9 @@ +if(!hasInterface)exitWith{}; + +params ["_obj",["_textureIndex",0]]; + +_texture = getText (configfile >> "CfgWorlds" >> worldName >> "pictureMap"); + +if(_texture isEqualTo "") exitWith {}; + +_obj setObjectTextureGlobal [_textureIndex, _texture]; diff --git a/includes/Other/CfgFunctions.hpp b/includes/Other/CfgFunctions.hpp index ca5b5ce..a978853 100644 --- a/includes/Other/CfgFunctions.hpp +++ b/includes/Other/CfgFunctions.hpp @@ -1,4 +1,5 @@ class Other{ file="DLib\functions\Other"; class natoSymbolHelper{}; + class mapImage{}; } \ No newline at end of file