added activeFunc for active obj
This commit is contained in:
1 parent
943b6b4d21
commit
bc2997d86f
7 files changed
+97
-47
No files matched your search
+1
-12
@@ -22,18 +22,7 @@ step1()
|
||||
|
||||
function on_health_pickup()
|
||||
game_api.pickup_item("health_potion")
|
||||
print("[Lua] Health potion picked up!")
|
||||
|
||||
end
|
||||
|
||||
function on_item_pickup(object_name)
|
||||
print("========================================")
|
||||
print("on_item_pickup CALLBACK CALLED!")
|
||||
print("Player picked up item from: " .. tostring(object_name))
|
||||
print("========================================")
|
||||
|
||||
game_api.pickup_item(object_name)
|
||||
|
||||
--game_api.show_inventory()
|
||||
end
|
||||
|
||||
print("Lua script loaded successfully!")
|
||||
Reference in new issue
Block a user