From c292eed7f3ddbeb2c1ee3e1ca34a6560c4e4dc91 Mon Sep 17 00:00:00 2001 From: Niklas Date: Tue, 31 Mar 2020 00:45:49 +0200 Subject: [PATCH] added map image --- functions/Other/fn_mapImage.sqf | 9 +++++++++ includes/Other/CfgFunctions.hpp | 1 + 2 files changed, 10 insertions(+) create mode 100644 functions/Other/fn_mapImage.sqf 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