From 9ca8a6da2c7269ee0120fa00ef5300b1fba9173a Mon Sep 17 00:00:00 2001 From: Flam3s Date: Wed, 9 Oct 2024 03:05:03 +0300 Subject: [PATCH] Fix LaunchLoot Parameter mismatch now requires additional argument --- _articles/scripting/item-drop-system.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_articles/scripting/item-drop-system.md b/_articles/scripting/item-drop-system.md index b4ce6b8f..441b9b8c 100644 --- a/_articles/scripting/item-drop-system.md +++ b/_articles/scripting/item-drop-system.md @@ -74,7 +74,7 @@ function RollDrops(unit) local pos = unit:GetAbsOrigin() local drop = CreateItemOnPositionSync( pos, item ) local pos_launch = pos+RandomVector(RandomFloat(150,200)) - item:LaunchLoot(false, 200, 0.75, pos_launch) + item:LaunchLoot(false, 200, 0.75, pos_launch, nil) end end end @@ -128,7 +128,7 @@ function RollDrops(unit) local pos = unit:GetAbsOrigin() local drop = CreateItemOnPositionSync( pos, item ) local pos_launch = pos+RandomVector(RandomFloat(150,200)) - item:LaunchLoot(false, 200, 0.75, pos_launch) + item:LaunchLoot(false, 200, 0.75, pos_launch, nil) end end end @@ -203,7 +203,7 @@ function RollDrops(unit) local pos = unit:GetAbsOrigin() local drop = CreateItemOnPositionSync( pos, item ) local pos_launch = pos+RandomVector(RandomFloat(150,200)) - item:LaunchLoot(false, 200, 0.75, pos_launch) + item:LaunchLoot(false, 200, 0.75, pos_launch, nil) end end end