# Set State Of Unit Filter

Grammar — Set type units to be state in filter|Unit Filter
FlagsNative | Action

Sets a state on the specified unit filter.

# Arguments

Returns — void

native void UnitFilterSetState(
	unitfilter inFilter,
	int inType,
	int inState,
);

Category: Unit / Filters

# Examples

# mods/core.sc2mod

NativeLib.galaxy

// L5715
UnitFilterSetState(lv_unitFilter, lv_filterType, lv_filterState)

# mods/core.sc2mod

TactProtAI.galaxy

// L67
UnitFilterSetState(filterUnit, c_targetFilterUncommandable,             c_unitFilterExcluded)
// L68
UnitFilterSetState(filterUnit, c_targetFilterWorker,                    c_unitFilterExcluded)
// L69
UnitFilterSetState(filterUnit, c_targetFilterUnderConstruction,         c_unitFilterExcluded)
// L70
UnitFilterSetState(filterUnit, c_targetFilterStructure,                 c_unitFilterExcluded)

# mods/core.sc2mod

TactTerrAI.galaxy

// L230
UnitFilterSetState(filterUnit, c_targetFilterPsionic, c_unitFilterRequired)
// L235
UnitFilterSetState(filterUnit, c_targetFilterPsionic, c_unitFilterExcluded)

# mods/core.stormmod

NativeLib.galaxy

// L4865
UnitFilterSetState(lv_unitFilter, lv_filterType, lv_filterState)

# mods/starcoop/starcoop.sc2mod

TactProtAI.galaxy

// L68
UnitFilterSetState(filterUnit, c_targetFilterUncommandable,             c_unitFilterExcluded)
// L69
UnitFilterSetState(filterUnit, c_targetFilterWorker,                    c_unitFilterExcluded)
// L70
UnitFilterSetState(filterUnit, c_targetFilterUnderConstruction,         c_unitFilterExcluded)
// L71
UnitFilterSetState(filterUnit, c_targetFilterStructure,                 c_unitFilterExcluded)