update base:drop component
This commit is contained in:
parent
bc17abc8b3
commit
81775f3304
@ -1,9 +1,10 @@
|
|||||||
local base_entities = {}
|
local base_entities = {}
|
||||||
|
|
||||||
function base_entities.drop(ppos, itemid, count)
|
function base_entities.drop(ppos, itemid, count, ready)
|
||||||
return entities.spawn("base:drop", ppos, {base__drop={
|
return entities.spawn("base:drop", ppos, {base__drop={
|
||||||
id=itemid,
|
id=itemid,
|
||||||
count=count
|
count=count,
|
||||||
|
ready=ready
|
||||||
}})
|
}})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -3,10 +3,13 @@ local body = entity.rigidbody
|
|||||||
local rig = entity.skeleton
|
local rig = entity.skeleton
|
||||||
|
|
||||||
inair = true
|
inair = true
|
||||||
ready = false
|
|
||||||
target = -1
|
target = -1
|
||||||
|
ready = false
|
||||||
|
|
||||||
local dropitem = ARGS
|
local dropitem = ARGS
|
||||||
|
if dropitem then
|
||||||
|
ready = dropitem.ready
|
||||||
|
end
|
||||||
if SAVED_DATA.item then
|
if SAVED_DATA.item then
|
||||||
dropitem.id = item.index(SAVED_DATA.item)
|
dropitem.id = item.index(SAVED_DATA.item)
|
||||||
dropitem.count = SAVED_DATA.count
|
dropitem.count = SAVED_DATA.count
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user