# Resources Traded

Grammar — Player player trades resources to recipientPlayer
FlagsNative | Event

# Arguments

  • int — Player
  • int — Recipient Player

Returns — void

native void TriggerAddEventResourceTrade(
	trigger t,
	int player,
	int recipientPlayer,
);

Category: UI / Game UI

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:33057

    libCOMI_gt_CM_VOResourceSent = TriggerCreate("libCOMI_gt_CM_VOResourceSent_Func");
    TriggerEnable(libCOMI_gt_CM_VOResourceSent, false);
    TriggerAddEventResourceTrade(libCOMI_gt_CM_VOResourceSent, c_playerAny, c_playerAny);
}