BeeKeepingExports
Client exports
Client exports that spawn and drive the honey separator prop.
Cosmetic helpers for the crank separator prop and its basket. Positions are world coordinates. The script uses these same exports for the separators staff place in the world, so ids you pass in should not collide with its own.
| Export | Params | Returns |
|---|---|---|
CreateHoneySeparator | coords, heading, animated, rpm, id, withFrames | id, shell, rotor, crank, or nil and an error |
AttachHoneySeparatorBasket | shell, rpm, id, withFrames | id, shell, rotor, crank, or nil and an error |
SetHoneySeparatorSpeed | id, rpm | boolean |
StopHoneySeparator | id | boolean |
SetHoneySeparatorAngle | id, angle | boolean |
SetHoneySeparatorFrames | id, withFrames | boolean |
RemoveHoneySeparator | id | boolean |
GetHoneySeparatorCrankControls | id | A table with pivot, axis, uaxis, vaxis, radius and grip, or nil when that separator or its crank does not exist |
CreateHoneySeparator returns only id, shell when animated is false. AttachHoneySeparatorBasket needs a mrnewb_honey_crank_shell object. Speed is limited to between -180 and 180 rpm.
local id = exports.MrNewbBeeKeeping:CreateHoneySeparator(vec3(0.0, 0.0, 70.0), 90.0, true, 120, 'my_sep', true)
exports.MrNewbBeeKeeping:StopHoneySeparator(id)
exports.MrNewbBeeKeeping:RemoveHoneySeparator(id)