Normally attempting to name a unit 'switch' generates an invalid variable name error, as expected as it is used for the switch script command. However, capitalizing any letter in the name (e.g. Switch, SWITCH, etc) does not trigger the invalid variable name in the editor, and allows for Preview. Upon entering the mission, the GUI on the pause menu is overlaid with the Configure Menu.
Description
Description
Details
Details
- Legacy ID
- 857751543
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 7
- Category
- Editor
Steps To Reproduce
- Place a unit down in the editor
- Attempt to name the unit 'switch'
- Observe the correct invalid variable as intended
- Attempt to name the unit 'Switch'
- No invalidity error occurs, and the player can Preview the mission
- The following error will occur in the RPT:
Error in expression <;_display = _params select 0;switch _mode do {case onLoad":{_displays = >
Error position: <_mode do {case "onLoad": {_displays = > Error Missing ;
File A3\ui_f\scripts\initDisplay.sqf, line 29
Additional Information
It should not be possible to name a unit the name of a script command regardless whether the letters are upper or lower case.
Also, attempting to rename the unit after Preview will not be possible, the right side of the Edit Unit screen will not function, requiring a restart of the Editor.