Skip to content

Commit 9ca8a6d

Browse files
committed
Fix LaunchLoot Parameter mismatch
now requires additional argument
1 parent 99d6d04 commit 9ca8a6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_articles/scripting/item-drop-system.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function RollDrops(unit)
7474
local pos = unit:GetAbsOrigin()
7575
local drop = CreateItemOnPositionSync( pos, item )
7676
local pos_launch = pos+RandomVector(RandomFloat(150,200))
77-
item:LaunchLoot(false, 200, 0.75, pos_launch)
77+
item:LaunchLoot(false, 200, 0.75, pos_launch, nil)
7878
end
7979
end
8080
end
@@ -128,7 +128,7 @@ function RollDrops(unit)
128128
local pos = unit:GetAbsOrigin()
129129
local drop = CreateItemOnPositionSync( pos, item )
130130
local pos_launch = pos+RandomVector(RandomFloat(150,200))
131-
item:LaunchLoot(false, 200, 0.75, pos_launch)
131+
item:LaunchLoot(false, 200, 0.75, pos_launch, nil)
132132
end
133133
end
134134
end
@@ -203,7 +203,7 @@ function RollDrops(unit)
203203
local pos = unit:GetAbsOrigin()
204204
local drop = CreateItemOnPositionSync( pos, item )
205205
local pos_launch = pos+RandomVector(RandomFloat(150,200))
206-
item:LaunchLoot(false, 200, 0.75, pos_launch)
206+
item:LaunchLoot(false, 200, 0.75, pos_launch, nil)
207207
end
208208
end
209209
end

0 commit comments

Comments
 (0)