Skip to content
Eric van Fandenfart edited this page Jun 22, 2019 · 22 revisions

Weitere Skripte: https://github.com/TacticalBaconDevs/TBMod/blob/master/infos/debugCode.sqf


SafeStart

#safe -> in den Chat on/off toggle oder #safe 1 für an #safe 0 für aus

Alter Code -> Starten - GLOBAL ausführen: `[true] spawn TB_fnc_safe`
-> Beenden - GLOBAL ausführen: `[false] spawn TB_fnc_safe`

ZeusGruppe von der Karte verschwinden (Bluefortrack)

-> Ausblenden - LOKAL ausführen: (group player) setVariable ["ace_map_hideBlueForceMarker", true, true]
-> (Wieder)Einblenden - LOKAL ausführen: (group player) setVariable ["ace_map_hideBlueForceMarker", false, true]


GruppenID setzen

-> Person direkt anschauen und davorstehen - LOKAL ausführen: cursorObject setGroupIdGlobal ["Alpha"]


Als Tier spawnen

-> LOKAL ausführen - TIER außer Fische -> https://community.bistudio.com/wiki/Arma_3_CfgVehicles_Animals
_tier = createAgent ["Fin_random_F", getPos player, [], 5, "CAN_COLLIDE"]; _tier setVariable ["BIS_fnc_animalBehaviour_disable", true]; BACK = player; selectPlayer _tier;
-> wieder zurück LOKAL ausführen:
selectPlayer BACK


Aktive Spielerradare erkennen

-> Starten - LOKAL ausführen:
[] spawn {TB_checkRadar = true; waitUntil { private _msg = "Aktiver Radar:"; { if (isVehicleRadarOn (vehicle player)) then { _msg = format ["%1\n%2 - %3", _msg, name _x, getText (configFile >> "CfgVehicles" >> typeOf (vehicle player) >> "displayName")]; }; } forEach allPlayers; if (_msg != "Aktiver Radar:") then {hintSilent _msg} else {hintSilent ""}; uiSleep 2; !TB_checkRadar }};
-> ENDE - LOKAL ausführen:
TB_checkRadar = false


KI nicht fliehen lassen

{_x allowFleeing 0} forEach allGroups;


Heli Missions Start

if(isServer) then { private _groups = [alpha,bravo,charlie,delta]; private _helis = [alphaheli,bravoheli,charlieheli,deltaheli]; if (count _groups != count _helis) then { (format ["[TBMod] Anzahl Groups/Heli unterschiedlich"]) remoteExecCall ["systemChat"]; }else{ for "_i" from 0 to (count _helis -1) do { {_x moveInCargo (_helis select _i)} forEach units (_groups select _i); }; }; };

Clone this wiki locally