Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Train of scv takes no effect #10

Open
MrVermond opened this issue Feb 5, 2019 · 0 comments
Open

Train of scv takes no effect #10

MrVermond opened this issue Feb 5, 2019 · 0 comments

Comments

@MrVermond
Copy link

MrVermond commented Feb 5, 2019

Hi Matthias,

can you help me out, im trying to get application to train a scv but it just will not work
Here is my code

static Action BuildScv(GameState state)
        {
            var unit = state.NewObservation.Observation.RawData.Units.First(u => u.UnitType == (uint)18);
           

            var a5 = new Action();
            a5.ActionRaw = new ActionRaw();
            a5.ActionRaw.UnitCommand = new ActionRawUnitCommand();
                 
            a5.ActionRaw.UnitCommand.AbilityId = (int)524;
            a5.ActionRaw.UnitCommand.TargetUnitTag = unit.Tag;
            a5.ActionRaw.UnitCommand.UnitTags.Add(unit.Tag);
            return a5;
        }

sadly the api does not return any error.

BR and thanks in advance
Nick

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

No branches or pull requests

1 participant