Skip to content

Train of scv takes no effect #10

@MrVermond

Description

@MrVermond

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions