vova _fox
Member-
Content Count
39 -
Joined
-
Last visited
-
Medals
Everything posted by vova _fox
-
you can use command call everywhere
-
try { number = random 60; if (number < 14) then {throw "SP1"}; if (number > 14 AND number < 23) then {throw "SP2"}; if (number > 23 AND number < 30.5) then {throw "SP3"}; if (number > 30.5 AND number < 34) then {throw "SP4"}; if (number > 34 AND number < 41) then {throw "SP5"}; if (number > 41 AND number < 46) then {throw "SP6"}; if (number > 46 AND number < 51) then {throw "SP6"}; throw "exit"; } catch { switch _exception do { case "SP1" : { //Group, Area, ASize, Num Of Enemy [group01,Spa1,400,100] call spawnbuild; }; case "SP2" : { //Group, Area, ASize, Num Of Enemy [group01,Spa2,400,100] call spawnbuild; }; case "SP3" : { //Group, Area, ASize, Num Of Enemy [group01,Spa3,400,100] call spawnbuild; }; case "SP4 : { //Group, Area, ASize, Num Of Enemy [group01,Spa4,200,100] call spawnbuild; }; case "SP5" : { //Group, Area, ASize, Num Of Enemy [group01,Spa5,200,100] call spawnbuild; }; case "SP6" : { //Group, Area, ASize, Num Of Enemy [group01,Spa6,200,100] call spawnbuild; }; case "SP7" : { //Group, Area, ASize, Num Of Enemy [group01,Spa4,200,100] call spawnbuild; [group01,Spa5,200,100] call spawnbuild; [group01,Spa6,200,100] call spawnbuild; }; case "exit" : {}; }; };
-
For loops counting up or down
vova _fox replied to CarlGustaffa's topic in ARMA - MISSION EDITING & SCRIPTING
wrong code: if () then {} ; else {}; right if () then {} else {}; -
lbSetPicture two pictures??
vova _fox replied to Doolittle's topic in ARMA - MISSION EDITING & SCRIPTING
unpossible -
{unit addmagazine "m16"} foreach [0,0,0,0,0,0,0,0,0,0];
-
forEach in conditions
vova _fox replied to CarlGustaffa's topic in ARMA - MISSION EDITING & SCRIPTING
({!(_x in (crew uVeh))} count (units uMyGroup))==0 -
Checking the content of an Array?
vova _fox replied to ZNorQ's topic in ARMA - MISSION EDITING & SCRIPTING
just call it the same way Dr. Eyeball did, since the main function body is quite the same ([_a,_b] call fn_ArraysAreEqual) ... Regards, Zap vf_arraysareequal= { private ["_i, _array"]; _array=_this select 1; if(count _array!=count (_this select 0)) exitwith{false}; _i=-1; ({_i=_i+1; _x != (_array select _i)} count (_this select 0))==0 }; -
Checking the content of an Array?
vova _fox replied to ZNorQ's topic in ARMA - MISSION EDITING & SCRIPTING
deleted -
img valign in html control
vova _fox replied to Ragnar_Darude's topic in ARMA - MISSION EDITING & SCRIPTING
Should show the picture in the upper left corner with the text starting from the upper right corner of the picture and continues on the right side of the picture. This is also what is displayed when viewing the html-file in a normal browser, but not when viewing it in a Arma HTML dialog-control. The picture is on the left side, but the text starts on the bottom right of the picture, as if there wasnt a 'valign' setting in the <img> tag. Am i doing something wrong, is there a way around this or am I just going to have to accept it as a limitation of the engine? all works (parsetext "<t size='1' align='right' valign 'top' ><img image='galka.paa'/></t>"); if you want create image with text then: (parsetext "<t size='1' align='right' valign 'top' ><img image='galka.paa'/></t>"+"<t size='1' align='right' valign 'top' >"+"texttexttextextetextetex"+"</t>"); -
Hello all. It really to change image color in structured text? I'am trying this: ((finddisplay 800) displayctrl 103) ctrlSetStructuredText (parsetext "<t size='1' align='right'><img color='#ffffff00' image='galka.paa'/></t>"); image d'ont change color... Another question: How use command createdisplay? I'am write: waituntil { !isnull (finddisplay 46) }; _display=finddisplay 46; _display createDisplay "RscObserver" but it do no effect... p.s. sorry for my english
-
Thanks!
-
Local variables filtering down
vova _fox replied to dmarkwick's topic in ARMA - MISSION EDITING & SCRIPTING
scope using in scripts too: _a=1; if (true) then {private ["_a"]; _a=50}; ... result: _a=1 ... _a=1; for [{private["_a"]; _a=0},{_a>= 10},{_a=_a+1}] do { .. }; result: _a=1 and also in while , switch, try catch...edc but in for "_i" from 0 to 10 do { ... }; _i will be allways private -
Sleep or WaitUntil?
vova _fox replied to Ragnar_Darude's topic in ARMA - MISSION EDITING & SCRIPTING
while {true} do { call {....}; sleep 1; }; but i like use this: _t=time-1; waituntil { if (time -_t >= 1) then {call {...}; _t = time}; true }; i'am thing there is more fps.. -
Controls - I just don't get it..
vova _fox replied to ZNorQ's topic in ARMA - MISSION EDITING & SCRIPTING
dialog.sqf (_nul=[] execvm "dialog.sqf") if (!(createDialog "dlgGameMaster")) exitwith {hint "fatal erorr!"}; lbAdd[102, "This is a test - 1"]; lbAdd[102, "This is a test - 2"]; ctrlSetText[101, "The label text have been changed.."]; waitUntil {!dialog}; p.s. my english very bad