# Find Placement From Point For Unit Type With Tests
Grammar — Find Placement From source Point For Unit Type unitType And Player player With Range range And Tests tests
Flags —Native
|Function
# Arguments
string
[ gamelink::Unit ] — Unit Typeint
— Playerpoint
— Sourcefixed
— Rangeint
[ preset::PlacementTests ] — Tests
Returns — point
native point UnitTypePlacementTestsFromPoint(
string inType,
int inPlayer,
point inSource,
fixed inRange,
int inTests,
);
# Related
Category: Unit / Placement
- [F] —
int
— Move Blockers From Point For Unit Type — ( UnitTypeMoveBlockersFromPoint ) - [F] —
int
— Move Blockers From Unit For Unit Type — ( UnitTypeMoveBlockersFromUnit ) - [F] —
point
— Find Placement From Point For Unit Type — ( UnitTypePlacementFromPoint ) - [F] —
point
— Find Placement From Unit For Unit Type — ( UnitTypePlacementFromUnit ) - [F] —
point
— Find Placement From Point For Unit Type With Tests — ( UnitTypePlacementTestsFromPoint ) - [F] —
point
— Find Placement From Unit For Unit Type With Tests — ( UnitTypePlacementTestsFromUnit )
# Examples
# mods/starcoop/starcoop.sc2mod
// L3198
UnitTypePlacementTestsFromPoint(lv_unitToCreate, lp_player, UnitGroupCenterOfGroup(UnitGroup(null, lp_player, RegionEntireMap(), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)), 0.0, c_placementTestCreepMask | c_placementTestPowerMask | c_placementTestFogMask | c_placementTestIgnoreBlockersMask | c_placementTestIgnoreInvisibleMask | c_placementTestZoneMask | c_placementTestCliffMask | c_placementTestDensityMask)
// L14524
UnitTypePlacementTestsFromPoint(UnitGetType(lv_cargoUnit), EventPlayer(), UnitGetPosition(lv_transportUnit), 3.0, c_placementTestCliffMask)