You are viewing a potentially older version of this package. View all versions.
joobt-Lumod-1.0.0 icon

Lumod

Another Lua mod. Unfinished!

By joobt
Date uploaded 2 weeks ago
Version 1.0.0
Download link joobt-Lumod-1.0.0.zip
Downloads 60
Dependency string joobt-Lumod-1.0.0

This mod requires the following mods to function

bonelib-BoneLib-3.2.2 icon
bonelib-BoneLib

A BONELAB mod for making life easier for other mod creators.

Preferred version: 3.2.2

README

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