# Set Unit Behavior User Data

Grammar — Set behavior user data userData to value on unit unit
FlagsNative | Action

Sets a behavior user data on a unit.

# Arguments

  • unit — Unit
  • string<gamelink::Behavior> — Behavior
  • string — User Data
  • fixed — Value

Returns — void

native void UnitBehaviorEffectTreeSetUserData(
	unit inUnit,
	string behavior,
	string userData,
	fixed value,
);

Category: Behavior / Basic

# Examples

— None found —