Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Example: [this,[
- ["Bild 1 Text","\a3\characters_f\OPFOR\Data\clothing_rus_co.paa"],
- ["Bild 2 Text","A3\Characters_F\Civil\Data\hunter_bushman_co.paa"]
- ]] execVM "addImagesAction.sqf";
- */
- _object = param[0,objNull];
- _imageArray = param[1,[
- ["Bild 1 Text","\a3\characters_f\OPFOR\Data\clothing_rus_co.paa"],
- ["Bild 2 Text","A3\Characters_F\Civil\Data\hunter_bushman_co.paa"]
- ]];
- {
- _args = _x;
- _title = _args select 0;
- _object addAction
- [
- _title,
- {
- params ["_target", "_caller", "_actionId", "_arguments"];
- _imagePath = _arguments param[1,""];
- _target setObjectTextureGlobal [0, _imagePath];
- },
- _args,
- 1.5,
- true,
- true,
- "",
- "true",
- 5,
- false,
- "",
- ""
- ];
- } foreach _imageArray;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement