Page MenuHomeFeedback Tracker

Sides infependent != guer
Closed, ResolvedPublic

Description

Just place an independent unit in editor and name it myUnit.
Then in debug console just look at the return value of "side myUnit". It will return GUER.
But is you check "side myUnit == GUER" it will return false. You have to check "side myUnit == independet" to get true.
Something's wrong there.

Details

Legacy ID
1257535984
Severity
None
Resolution
No Bug
Reproducibility
Always
Category
Scripting

Event Timeline

Fett_Li edited Steps To Reproduce. (Show Details)Apr 7 2014, 5:06 PM
Fett_Li edited Additional Information. (Show Details)
Fett_Li set Category to Scripting.
Fett_Li set Reproducibility to Always.
Fett_Li set Severity to None.
Fett_Li set Resolution to No Bug.
Fett_Li set Legacy ID to 1257535984.May 7 2016, 6:21 PM

does

str side myUnit == "GUER"

work?

Or you can assign side to GUER

GUER = resistance; //or GUER = independent;

then you can compare it directly

side myUnit == GUER

Fett_Li added a subscriber: Fett_Li.May 7 2016, 6:21 PM

I don't have a problem with getting a unit side - btw thanks for the suggestions.

But I think it's kind of weird that
side myUnit
returns GUER and
side Myunit == GUER
returns false.

Because for a blufor unit it works.
side bluforUnit
returns west and
side bluforUnit == west
returns true.

So I think that should be fixed.

Thanks for the hint Grumpy Old Man. Is there any way to close my ticket? Or should I just let it open?

Iceman added a subscriber: Iceman.May 7 2016, 6:21 PM

Hello,
closed, no bug.
thank you