hi im making a intro with Scrolling Text in it but it looks like my code is broken but i cant see where any help welcome.
scrolling.sqf
// Gunship Deathmatch
// By ArMaTeC
//
// Usage: scrolling text on screen intro
// Usage: _scrool =[[Message], Delay, IDC] execVM "movie\scroller.sqf";
// Usage: _scrool =[[" U",".","N",".","A","."], 300, 1000] execVM "movie\scroller.sqf";
// Edited: 08.06.07 17:40
_array = _This select 0;
_baud = _this select 1;
_IDC = _this select 2;
_i = 0;
_arcount = 0;
_currenttext = "";
IF (IsScrolling > 0)then{
waitUntil {DoneScrolling == (_IDC)- 1};
};
while {(true)} do {
IsScrolling = _IDC;
_wait = 10/_baud;
_i = 0;
while {true} do {
CtrlSetText [_IDC, _currentText + "_"];
_arcount =count _array;
if (_i >= _arcount)then{
playsound "CMBeep";
_i = 0;
while {_i < 2} do {
sleep _wait;
CtrlSetText [_IDC, _currentText + ""];
sleep _wait;
CtrlSetText [_IDC, _currentText + "_"];
_i = _i + 1;
};
sleep _wait;
DoneScrolling = _IDC;
while {true} do {
CtrlSetText [_IDC, _currentText + ""];
sleep _wait;
if ((IsScrolling != _IDC) or (!Dialog))Exitwith{};
sleep _wait;
CtrlSetText [_IDC, _currentText + "_"];
};
//Mando thanks
waitUntil {DoneScrolling == _IDC - 1;};
};
sleep _wait;
_currentText = _CurrentText + (_array select _i);
_i = (_i)+ 1;
playsound "ScrollClick";
};
};
Thanks for taking the time to read this