You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
How do I get a unit id from a 4-character string?
I have tried two functions, FourCC and UnitId, no success.
Calling CreateUnitAtLoc(Player(0), FourCC('hfoo'), GetPlayerStartLocationLoc(Player(0)), 0)
as a custom script works fine.
Additionally, when looking at the compiled version, FourCC has two arguments.
EDIT: When removing the first variable in the compiled FourCC function, it seems to work.
That means the compiled FourCC might be the problem.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It seems all the parameters work except unit id.
How do I get a unit id from a 4-character string?
I have tried two functions, FourCC and UnitId, no success.
Calling
CreateUnitAtLoc(Player(0), FourCC('hfoo'), GetPlayerStartLocationLoc(Player(0)), 0)
as a custom script works fine.
Additionally, when looking at the compiled version, FourCC has two arguments.
EDIT: When removing the first variable in the compiled FourCC function, it seems to work.
That means the compiled FourCC might be the problem.
The text was updated successfully, but these errors were encountered: