Jump to content

ttdsi

Member
  • Content Count

    4
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About ttdsi

  • Rank
    Rookie
  1. I didnt mean to say i was gonna post it, I just want the script to execute on every mission that i play without manually adding it or executing it in the console
  2. What im trying to say is how do i get the script to run on every mission i start without having to use the dev console or adding it to the mission itself, Like a stand alone mod so i can drive one man tanks alone any time anywhere in arma 3
  3. What i meant is i would like to have this script ran on every mission i start, Can this be done by making a PBO? with a init.sqf? so i don't have to put the script every mission i wanna play just have it as apart of the game
  4. Ive been at it for a god 12 hours but i cant get this script yo execute when i start a mission:inGameUISetEventHandler ["Action", " _tk = _this select 0; if (_tk in MGI_tanks) then { if ((_this select 3) == 'GetInDriver' and count crew (_this select 0) > 0) then { _units = crew (_this select 0); if (!isnil MGI_agent) then {_units = _units - [mgi_agent]}; {unassignVehicle _x} forEach _units; _units allowGetIn false; }; if ((_this select 3) in ['GetInGunner','GetInCommander','GetInTurret']) exitWith { hint parseText ('<t>Jump in driver'+""'""+'s seat<t/>'); true }; if ((_this select 3) in ['MoveToGunner','MoveToCommander','MoveToTurret'] && !(player getVariable ['gunning',false])) exitWith { hint parseText ('<t>Only driver'+""'""+'s seat available<t/>'); true }; }; "]; MGI_EHTank = ["MGI_TK","onEachFrame", { _veh = vehicle player; if (!isNil "MGI_agent" && {!(_veh in MGI_tanks) or !(MGI_agent in _veh)}) exitWith { deleteVehicle MGI_agent; MGI_agent = nil; (findDisplay 46) displayRemoveEventHandler ["keyDown",MGI_keysDriving]; MGI_keysDriving = nil; }; if (player == driver _veh and _veh in MGI_tanks) then { {_veh lockTurret [_x,true]} forEach allTurrets _veh; if (cameraView != "external") then {player switchcamera "external"} } else { if (player == gunner _veh && _veh in MGI_tanks && diag_tickTime > MGI_timerTurreting + 10 && (cameraView == "external" && isnil "MGI_signTkDest")) then { player action ["MoveToDriver", _veh]; player setVariable ["gunning",false]; if !(isnil "MGI_agent") then { deleteVehicle MGI_agent; MGI_agent = nil; deleteGroup MGI_agent_Grp; {_veh lockTurret [_x,true]} forEach allTurrets _veh}; }; }; if (isnil "MGI_keysDriving") then { MGI_keysDriving = (findDisplay 46) displayAddEventHandler ["KeyDown", " private _handled = false; if (!isnil 'MGI_agent'&& {if (inputAction _x >0) exitWith {1} } count ['turnLeft','turnRight','moveBack','moveForward','moveFastForward'] >0) then { enableSentences false; [] spawn {uisleep 1; enableSentences true}; }; _handled "]; }; }] call BIS_fnc_addStackedEventHandler; MGI_1ManTank = { if (!hasInterface) exitWith {}; MGI_timerTurreting = 0; MGI_tanks = []; waituntil {!isNull findDisplay 46}; _MGI_mousingGunner = (findDisplay 46) displayAddEventHandler ["mouseMoving",{ _veh = vehicle player; if (_veh in MGI_tanks) then { _veh allowCrewInImmobile true; _veh setUnloadInCombat [true,false]; player setVariable ["gunning",true]; if (gunner _veh != player) then {player action ["MoveToTurret",_veh,[0]]}; MGI_timerTurreting = diag_tickTime; if (isnil "MGI_agent") then { MGI_agent_Grp = createGroup playerSide; MGI_agent = MGI_agent_Grp createunit ["B_Soldier_VR_F", getpos _veh, [], 0, "CAN_COLLIDE"]; MGI_agent moveInDriver _veh; MGI_agent setBehaviour "COMBAT"; MGI_agent setSpeedMode "FULL"; }; }; }]; while {true} do { uisleep 2; { MGI_tanks pushBackUnique _x; _x setVariable ["onetk",true]; } forEach (vehicles select { (_x isKindOf "tank" or _x isKindOf "Wheeled_APC_F" ) && isnil {_x getVariable "onetk"}}); }; }; 0 = [] spawn MGI_1ManTank; One man tank crew script that works, But having a mod with this as a init does not wanna execute, Could someone help
×