Page MenuHomeFeedback Tracker

remoteControl issues: no getter and stuck remote control
Closed, ResolvedPublic

Description

remoteControl is very problematic.

  1. There is no getter for it, I'd like to request a getter commands to avoid using dirty hacks. Suggested syntax:

getRemoteControlling ENTITY - return a unit or null that provided unit controls
getRemoteControlled ENTITY - return a unit that controls provided unit
Alternative names to be more readable:
getRemoteControlBy - return unit who controls provided unit
getRemoteControlUnit - return remote controlled unit for provided unit

  1. If remote controlled unit is deleted, remote controlling is forever stuck. Repro code for the issue:
unit = group player createUnit [typeOf player, getPos player, [], 0, ""];
player remoteControl unit;
deleteVehicle unit;

Its impossible to get back control for the unit from this point, objNull remoteControl player, player remoteControl objNull, player remoteControl player, player switchCamera "INTERNAL", selectPlayer player, selectPlayer to another unit and back, nothing helps.

  1. Apparently command is unable to stop remote control if right operand is null. player remoteControl objNull should remove remote control from left operand and disconnect remote control from right operand if there is any.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

SaMatra created this task.Mar 27 2023, 6:53 AM

Found a hack to fix stuck remote control trough UAV terminal:

  1. Spawn some UAV
  2. Give player UAV Terminal, connect it to UAV through script
  3. player action ["SwitchToUAVDriver", player];
  4. Delete UAV and Terminal

Can't call this a solution though.

Related ticket to close once this one is done: T128006

BIS_fnc_KK set Ref Ticket to AIII-55818.Jul 25 2023, 3:16 PM
  1. added remoteControlled command Revision: 150823
  1. Revision: 150832
BIS_fnc_KK updated the task description. (Show Details)Jul 25 2023, 9:29 PM

remoteControlled can now return controlled unit Revision: 150862

  1. Revision: 150865
BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Aug 1 2023, 12:07 AM
BIS_fnc_KK changed the task status from New to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.
This comment was removed by BIS_fnc_KK.

Looks like everything is fixed, can be closed as resolved.

Leopard20 closed this task as Resolved.Sep 11 2023, 1:44 PM