Advertisement
zSkullfox

Untitled

Apr 14th, 2020
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. /*
  2. Example: [this,[
  3. ["Bild 1 Text","\a3\characters_f\OPFOR\Data\clothing_rus_co.paa"],
  4. ["Bild 2 Text","A3\Characters_F\Civil\Data\hunter_bushman_co.paa"]
  5. ]] execVM "addImagesAction.sqf";
  6. */
  7.  
  8. _object = param[0,objNull];
  9. _imageArray = param[1,[
  10. ["Bild 1 Text","\a3\characters_f\OPFOR\Data\clothing_rus_co.paa"],
  11. ["Bild 2 Text","A3\Characters_F\Civil\Data\hunter_bushman_co.paa"]
  12. ]];
  13.  
  14. {
  15. _args = _x;
  16. _title = _args select 0;
  17.  
  18. _object addAction
  19. [
  20. _title,
  21. {
  22. params ["_target", "_caller", "_actionId", "_arguments"];
  23. _imagePath = _arguments param[1,""];
  24. _target setObjectTextureGlobal [0, _imagePath];
  25. },
  26. _args,
  27. 1.5,
  28. true,
  29. true,
  30. "",
  31. "true",
  32. 5,
  33. false,
  34. "",
  35. ""
  36. ];
  37. } foreach _imageArray;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement