Harvestable.initialHash

Gets the initial hash of a kinematic. The initial hash identifies the kinematic by its initial world position, uuid and world id.

Kind: Member

Environments: Game

Game

Open the full Game reference

Get

Gets the initial hash of a kinematic. The initial hash identifies the kinematic by its initial world position, uuid and world id.

This can be used to match kinematics spawned from the same entity in a tile even though each loaded kinematic is technically a different object.

Returns:

Type Description
number The initial hash. Returns 0 if the harvestable is not kinematic.