
You are viewing a potentially older version of this package. View Latest Version
Lumod
Another Lua mod. Unfinished!Lumod (Lua Mod (Lmao))
Another Lua framework mod. Quite unfinished and very sloppy
Comes pre-packaged with an example LiDAR script.
Simple function list:
print("does what you think") -- Output: "[\file.lua] Hi guys."
error("This ones older and less supported")
warn("This ones older and less supported")
R = raycast(origin, direction, length)
R["obj"] -- Object
R["normal"]
R["distance"]
R["point"] -- Hitpos
R["layer"] -- The layer ID it hit
onUpdate(function()
print("Runs every frame")
end)
onKeyDown(function(keyname)
print("Runs every keypress, key name is:" .. keyname)
end)
onSceneWasLoaded(function(sceneName)
print("Runs on ".. sceneName .." load")
end)
notify(msg,title,type,duration)
time() -- Current unix timestamp (MILLISECONDS)
filepath("file") -- returns <melonloader data folder>/file
vec(n,n,n) -- a vector
CONSTS:
_NOTIFY_SUCCESS
_NOTIFY_ERROR
_NOTIFY_INFO
_NOTIFY_WARNING
-- Adds a button to your script's bonemenu menu
(void) page.CreateFunction(name, (vec)color, (func)callback)
(Object) debug.DrawLine((vec)from, (vec)to, (vec)color, alpha?, startwidth?, endwidth?)
(Object) debug.DrawSphere(vec pos, vec size, vec color, float alpha = 1)
theres "input.*" and "player.*" but i really dont have the energy to type more.
Objects have basic properties
I dont have the energy go look at Analysis