# Create Loot At Point

Grammar — Drop loot from player dropPlayer at dropLocation, with killer player set to killerPlayer
FlagsNative | Action

# Arguments

  • int — Drop Player
  • point — Drop Location
  • string<gamelink::Loot> — Loot
  • int — Killer Player

Returns — void

native void UnitLootDropPoint(
	int dropPlayer,
	point dropLocation,
	string loot,
	int killerPlayer,
);

Category: Loot / Basic

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3505

    }
    CatalogFieldValueSet(c_gameCatalogLoot, lv_generator, "MinLevel", lp_dropPlayer, lv_level);
    UnitLootDropPoint(lp_dropPlayer, lp_dropLocation, lv_generator, lp_killerPlayer);
}

mods/warcoop/warcoopdata.sc2modbase.sc2data/TriggerLibs/WarCoopData.galaxy:3808

            lv_lootlevelinstance = UserDataInstance(auto6E4006F1_userType, auto6E4006F1_i);
            if ((lv_heroitemcategory == UserDataGetUserInstance("LootDropLevels", lv_lootlevelinstance, "HeroItemCategory", 1)) && (lv_triggeringeffect == UserDataGetGameLink("LootDropLevels", lv_lootlevelinstance, "LootEffect", 1))) {
                UnitLootDropPoint(lv_legendplayer, EventPlayerEffectUsedPoint(c_effectLocationCasterUnit), UserDataGetGameLink("LootDropLevels", lv_lootlevelinstance, "LootDrop", 1), lv_legendplayer);
                autoD6406425_g = UnitLootLastCreatedGroup();
                autoD6406425_u = UnitGroupCount(autoD6406425_g, c_unitCountAll);