Advertisement
zSkullfox

TV screen

Sep 12th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.46 KB | None | 0 0
  1. span class="re5"> screen = {
  2.   []spawn{
  3.  
  4.  
  5.   _start = 1;
  6.   _end = 90;
  7.   _c = 1;
  8.  
  9.  
  10.   _soundPath = [(str missionConfigFile), 0, -15] call BIS_fnc_trimString;
  11.   _soundToPlay = _soundPath + "img\ac130\sound.ogg";
  12.   systemchat _soundToPlay;
  13.   playSound3D [_soundToPlay, tv, false, tv, 1, 1, 0];
  14.  
  15.   for [{_i=_c}, {_i<_end}, {_i=_i+1}] do{
  16.       _file = format["img\ac130\img_%1.jpg",_i];
  17.       tv setObjectTextureGlobal[0,_file];
  18.       sleep 0.5;
  19.   };
  20.  
  21.   };
  22. };
  23.  
  24. call screen;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement