Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

CreateUnitAtLoc does not seem to work #24

Open
treedenn opened this issue Aug 24, 2020 · 0 comments
Open

CreateUnitAtLoc does not seem to work #24

treedenn opened this issue Aug 24, 2020 · 0 comments

Comments

@treedenn
Copy link

treedenn commented Aug 24, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant