Search the Community
Showing results for tags 'select one player'.
Found 1 result
-
Need Help me Guys. I try makes scenaries for Multiplayer. And tried to resolve this issue - Select one player with Opfor team, assign him Somename as "spy1" and createDiaryRecord for him. i try many scripts but not rusult. one script work in my computer but not work with my friends. i try that in init.sqf _arr=[r1,r2,r3]; rozv1 = selectRandom _arr; rozv1 createDiaryRecord ["Diary", ["Bla-bla", "Bla-bla-bla"]]; if (alive rozv1) then {hint format ["%1 is chosen", rozv1];}; and that fn_SelectRandomOpfor = { _unit = objNull; _unitsArray = []; { if ((side _x == east ) and (isPlayer _x)) then { _unitsArray = _unitsArray + [_x]; }; } forEach allunits; rozv1 = _unitsArray call BIS_fnc_selectRandom;} call fn_SelectRandomOpfor; rozv1 createDiaryRecord ["Diary", ["Bla-bla", "Bla-bla-bla"]]; and that waitUntil {player == player}; playerarray = []; { playerarray = playerarray + [_x]; } forEach playableUnits; if (side player == opfor) exitWith { rozv1 = playerarray call BIS_fnc_selectRandom; rozv1 createDiaryRecord ["Diary", ["Bla-bla", "Bla-bla-bla"]]; if (alive rozv1) then {hint format ["%1 is chosen",rozv1];}; }; but every times when i tested with my friends we have problem with Select that one spy player. say me please what I need to do to achieve the desired result.
- 2 replies
-
- script for multiplayer
- arma 3
-
(and 3 more)
Tagged with: