mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-05 15:00:06 +00:00
CPunch
80f0ff7479
- LuaWrapper.cpp/lua_autopush was updated to support CNSocket* - Added basic getters added for Entity, (x, y, z & type) - Added basic getter for Player, (name) - Added bases getter for World, (version) - Added World.onPlayerAdded & World.onPlayerRemoved events
8 lines
221 B
Lua
8 lines
221 B
Lua
print("Hello world!")
|
|
|
|
World.onPlayerAdded:listen(function(plr)
|
|
print(plr.type .. " " .. plr.name .. " joined from LUA!!")
|
|
end)
|
|
|
|
wait(2)
|
|
print("Hello world ~2 seconds later! running protcol version " .. World.version) |