Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function on_use(inst, target, pos)
- -- So we don't have to type 'target.components' before each component.
- local target = target and target.components
- -- For growables.
- if target and target.growable then
- -- Technically this is infinite, but it'll cap out at the max growth state.
- target.growable:SetStage(4)
- end
- -- For crops.
- if target and target.crop then
- target.crop:Mature()
- end
- -- For other pickables.
- if target and target.pickable then
- target.pickable:Regen()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement