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.

ExportParamsReturns
CreateHoneySeparatorcoords, heading, animated, rpm, id, withFramesid, shell, rotor, crank, or nil and an error
AttachHoneySeparatorBasketshell, rpm, id, withFramesid, shell, rotor, crank, or nil and an error
SetHoneySeparatorSpeedid, rpmboolean
StopHoneySeparatoridboolean
SetHoneySeparatorAngleid, angleboolean
SetHoneySeparatorFramesid, withFramesboolean
RemoveHoneySeparatoridboolean
GetHoneySeparatorCrankControlsidA 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)