Page MenuHomeFeedback Tracker

Side (Independent unit) returns GUER
New, NormalPublic

Description

When using Side on a unit from the independent side it returns GUER.
(Side (independent unit)) will be interpreted as Resistance/Independent just fine by commands.
However using GUER doesn't work when coding.

The problem arises when you use the command in combination with Format where GUER will be an undefined variable.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
Scripting
Steps To Reproduce
  1. Place an Independent unit (as player) in the editor.
  2. Place a BLUFOR or OPFOR unit (as AI) in the editor and name him Unit1
  3. Run command:

Call Compile Format ["GRP = CreateGroup %1", (Side Player)] // GRP = CreateGroup GUER

GRP will be nil.

  1. Run command for the AI unit:

Call Compile Format ["GRP = CreateGroup %1", (Side Unit1)] // GRP = CreateGroup WEST/EAST

GRP will be created.

Event Timeline

Use WFSideText instead

That works fine, thanks.

In the watchlist
call compile format ["%1",(wfsidetext (side player))]
returns GUER but when run in my script it returns Resistance. Odd.

Sorry for bothering you.