HarvestableClass

A script class that is instanced for every Harvestable in the game.

Kind: API page

Environments: Game

Game

Open the full Game reference

A tree or a plant that can be harvested is a typical case of a harvestable.

Can receive events sent with sm.event.sendToHarvestable.

Fields

Name Type Description
harvestable Harvestable The Harvestable game object belonging to this class instance.
network Network A Network object that can be used to send messages between client and server.
storage Storage (Server side only.) A Storage object that can be used to store data for the next time loading this object after being unloaded.
data any Data from the "data" json element.
params any Parameter sent to sm.harvestable.create or set in the terrain generation script.
tags any The tags set on the harvestable from the editor.