DLib/functions/Other/fn_mapImage.sqf
2020-03-31 00:45:49 +02:00

10 lines
242 B
Plaintext

if(!hasInterface)exitWith{};
params ["_obj",["_textureIndex",0]];
_texture = getText (configfile >> "CfgWorlds" >> worldName >> "pictureMap");
if(_texture isEqualTo "") exitWith {};
_obj setObjectTextureGlobal [_textureIndex, _texture];