# Create Loot At Point
Grammar — Drop loot from player dropPlayer at dropLocation, with killer player set to killerPlayer
Flags —Native
|Action
# Arguments
int
— Drop Playerpoint
— Drop Locationstring
<gamelink::Loot> — Lootint
— Killer Player
Returns — void
native void UnitLootDropPoint(
int dropPlayer,
point dropLocation,
string loot,
int killerPlayer,
);
# Related
Category: Loot / Basic
- Create Loot At Unit —
void
— UnitLootDropUnit - Create Loot At Point —
void
— UnitLootDropPoint - Last Created Loot Unit —
unit
— UnitLootLastCreated - Last Created Loot Units —
unitgroup
— UnitLootLastCreatedGroup
# Examples
mods/core.sc2mod — base.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.sc2mod — base.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);