# Sleep/WakeUp Unit

GrammarsleepWakeUp|Sleep/WakeUp unit
FlagsAction

Sleeps or wakes up the specified unit.

# Arguments

Returns — void

void libNtve_gf_SleepUnit(
	unit lp_unit,
	bool lp_sleepWakeUp,
);

Category: Unit / Basic

# Examples

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

    if ((lp_sleepWakeUp == true) && (lp_alwaysExclusions == libCOMI_ge_SleepWakeUpExcludeOption_RespectExclusions)) {
        if ((lv_typeOfSleepyUnit != "OrbitalCommand") && (lv_typeOfSleepyUnit != "CommandCenter")) {
            libNtve_gf_SleepUnit(lp_unit, lp_sleepWakeUp);
        }

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

    }
    else {
        libNtve_gf_SleepUnit(lp_unit, lp_sleepWakeUp);
    }
}