# Find Placement From Unit For Unit Type
Grammar — Find Placement From source Unit For Unit Type unitType And Player player With Range range
Flags —Native
|Function
# Arguments
string
[ gamelink::Unit ] — Unit Typeint
— Playerunit
— Sourcefixed
— Range
Returns — point
native point UnitTypePlacementFromUnit(
string inType,
int inPlayer,
unit inSource,
fixed inRange,
);
# 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
// L27193
UnitTypePlacementFromUnit(UnitGetType(autoF8BB9D10_var), UnitGetOwner(autoF8BB9D10_var), lv_voidseeker, 10.0)
// L27609
UnitTypePlacementFromUnit("ZeratulCoop", UnitGetOwner(libCOMI_gv_cM_ZeratulProphecyArtifact), libCOMI_gv_cM_ZeratulProphecyArtifact, 10.0)