# OrderSetPlayer

FlagsNative

# Arguments

  • order — inOrder
  • int — inPlayer

Returns — void

native void OrderSetPlayer(order inOrder, int inPlayer);

Category: Unclassified

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/Tactical/TacticalAI.galaxy:304

    }
    ord = Order(cmd);
    OrderSetPlayer(ord, player);
    return ord;
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:14246

    if ((OrderGetFlag(lv_order, c_cmdQueued) == true)) {
        lv_order = Order(OrderGetAbilityCommand(lv_order));
        OrderSetPlayer(lv_order,lv_p);
        TriggerEnable(TriggerGetCurrent(), false);
        lv_i = 1;

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/Tactical/TacticalAI.galaxy:304

    }
    ord = Order(cmd);
    OrderSetPlayer(ord, player);
    return ord;
}