DLib/functions/Other/fn_mapImage.sqf

10 lines
242 B
Plaintext
Raw Permalink Normal View History

2020-03-30 22:45:49 +00:00
if(!hasInterface)exitWith{};
params ["_obj",["_textureIndex",0]];
_texture = getText (configfile >> "CfgWorlds" >> worldName >> "pictureMap");
if(_texture isEqualTo "") exitWith {};
_obj setObjectTextureGlobal [_textureIndex, _texture];