# Transfer Behavior

Grammar — Transfer inCount inBehavior from inSource|Source to inDest
FlagsNative | Action

Transfers a behavior from a source unit to a destination unit.

# Arguments

  • unit — Source Unit
  • unit — Destination Unit
  • string [ gamelink::Behavior ] — Behavior
  • int — Count

Returns — void

native void UnitBehaviorTransfer(
	unit inSource,
	unit inDest,
	string inBehavior,
	int inCount,
);

Category: Behavior / Basic

# Examples

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L4691
UnitBehaviorTransfer(lp_source, lp_target, "DarkTemplarRecentlyRecalled", c_unitBehaviorCountAll)
// L4692
UnitBehaviorTransfer(lp_source, lp_target, "SOARecallOnDeathRecentlyRecalled", c_unitBehaviorCountAll)
// L4693
UnitBehaviorTransfer(lp_source, lp_target, "SOAHeroicShieldWeakness", c_unitBehaviorCountAll)
// L4694
UnitBehaviorTransfer(lp_source, lp_target, "SOAHeroicShieldImmunity", c_unitBehaviorCountAll)