Page MenuHomeFeedback Tracker

Script error in team switching (TeamSwitch.sqf)
Closed, ResolvedPublic

Description

While testing the Eden editor for the first time today I ran into a script error when I accidentally opened the team switching UI (U key):

_playerObject = player;>
18:41:45 Error Undefined variable in expression: _selectedunit
18:41:45 File A3\ui_f\scripts\TeamSwitch.sqf, line 124
18:41:45 Error in expression <vehicleOfSelectedUnit = typeOf (vehicle _selectedUnit);

Details

Legacy ID
236247295
Severity
None
Resolution
Open
Reproducibility
Have Not Tried
Operating System
Windows 7
Category
Scripting
Steps To Reproduce
  1. Start a new mission in the eden editor
  2. Place a unit on opfor and blufor, then right click > "play as" one of them
  3. Open the team switch UI and hit escape to back out
  4. Kill the opposing unit
  5. Open the team switch UI again
Additional Information

Some of the repro steps are likely unnecessary, but this is the exact scenario I was in when I ran into this.

If those don't work, it's also possible that I had a unit highlighted in the UI and it died while the UI was open.

Game version was release branch, but marked as dev here.

Event Timeline

SilentSpike edited Additional Information. (Show Details)
SilentSpike set Category to Scripting.
SilentSpike set Reproducibility to Have Not Tried.
SilentSpike set Severity to None.
SilentSpike set Resolution to Open.
SilentSpike set Legacy ID to 236247295.May 8 2016, 1:39 PM

This should be fixed.

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Jul 9 2020, 1:44 PM
BIS_fnc_KK updated the task description. (Show Details)
BIS_fnc_KK edited Steps To Reproduce. (Show Details)
BIS_fnc_KK edited Additional Information. (Show Details)
BIS_fnc_KK set Operating System to Windows 7.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.
LouMontana closed this task as Resolved.Nov 13 2020, 12:44 PM
LouMontana claimed this task.