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.
Description
Description
Details
Details
- Legacy ID
- 1257535984
- Severity
- None
- Resolution
- No Bug
- Reproducibility
- Always
- Category
- Scripting
Event Timeline
Comment Actions
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
Comment Actions
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.
Comment Actions
Thanks for the hint Grumpy Old Man. Is there any way to close my ticket? Or should I just let it open?