# Unit Type Uses Mover

GrammarunitType uses mover mover
FlagsFunction

Returns true if a unit type uses the specified mover.

# Arguments

  • string<gamelink::Unit> — UnitType
  • string<gamelink::Mover> — Mover

Returns — bool

bool libNtve_gf_UnitMoverExists(
	string lp_unitType,
	string lp_mover,
);

Category: Unit / Properties

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2047

    for ( ; ( (auto38793687_ai >= 0 && lv_i <= auto38793687_ae) || (auto38793687_ai < 0 && lv_i >= auto38793687_ae) ) ; lv_i += auto38793687_ai ) {
        Wait(0.5, c_timeAI);
        if ((libNtve_gf_UnitMoverExists(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_unitType, "Fly") == true)) {
            lv_escortSpawnPoint = lv_airSpawnPoint;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:554


    // Implementation
    if ((libNtve_gf_UnitMoverExists(lp_gankUnitType, "Fly") == true)) {
        autoAC8E8DC3_n = lp_num;
        for (autoAC8E8DC3_i = 1; autoAC8E8DC3_i <= autoAC8E8DC3_n; autoAC8E8DC3_i += 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2mapMapScript.galaxy:2047

    for ( ; ( (auto38793687_ai >= 0 && lv_i <= auto38793687_ae) || (auto38793687_ai < 0 && lv_i >= auto38793687_ae) ) ; lv_i += auto38793687_ai ) {
        Wait(0.5, c_timeAI);
        if ((libNtve_gf_UnitMoverExists(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_unitType, "Fly") == true)) {
            lv_escortSpawnPoint = lv_airSpawnPoint;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:554


    // Implementation
    if ((libNtve_gf_UnitMoverExists(lp_gankUnitType, "Fly") == true)) {
        autoAC8E8DC3_n = lp_num;
        for (autoAC8E8DC3_i = 1; autoAC8E8DC3_i <= autoAC8E8DC3_n; autoAC8E8DC3_i += 1) {