Search the Community
Showing results for tags 'connectterminaltouav'.
Found 1 result
-
Cannot connect to UAV in multiplayer - [Resolved]
Dj Rolnik posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hey, I am prepping a mission which will feature stativ UAV terminals for players to use. Their intent is to allow for connecting to jets turret gunners when using an action, and remove the uav terminal when leaving the uav interface. What I got so far is this: initServer.sqf: WaitUntil {!(isNil "turret6")}; //waiting for the spawn of the last turret in sequence [ turret_controller_1, "Control turret 1", "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_hack_ca.paa", "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_hack_ca.paa", "_this distance _target < 2", "_caller distance _target < 2", {}, {}, {execVM "scripts\turret_control_1.sqf"}, {}, [], 2, 0, false, false ] remoteExec ["BIS_fnc_holdActionAdd", 0, turret_controller_1]; and turret_control_1.sqf: player linkItem "B_UavTerminal"; player connectTerminalToUAV turret1; player action ["SwitchToUAVGunner", getConnectedUAV player]; WaitUntil {!(isUAVConnected turret1)}; player unLinkItem "B_UavTerminal"; The simple script works perfectly in a Singleplayer environment. For some reason it does absolutely nothing when tested in Multiplayer. Basically we enter the map, proceed to the "turret_controller_1" which receives the action and when pressing and holding the spacebar (as instructed by the BIS_fnc_holdActionAdd command), the player is not transferred to the gunner view at all. All it does is add in the terminal for the player. I have been trying to kind of debug this issue and I came to the conclusion that the terminal does not connect to the turret (as shown by the getConnectedUAV command). I have no idea as to why that is, but that's slightly infuriating. I would be thankful for some guidance on this as I've been struggling to get those turrets to work for days now and there's always something new which does not work. I am leaning towards it happening because of some locality issue, but if that's the case, then I am the more in need of help. Thanks a lot, Adam- 16 replies