class ItemGround (server-side)
Available since version: 0.3.0
Represents a synchronized item placed in the world.
Properties
number id
Represents the unique ground item id.
string instance
Represents the Gothic item instance name.
Item|nil item
Represents the read-only registry item definition for this ground item.
number amount
Represents the item amount.
boolean physicsEnabled
Enables or disables client-side physics for this ground item.
string world
Represents the world name where this ground item exists.
number virtualWorld
Represents the virtual world id where this ground item exists.
Methods
getPosition
Returns the ground item world position.
{x, y, z} getPosition()
Returns {x, y, z}:
Position table.
setPosition
Sets the ground item world position and synchronizes it to relevant players.
void setPosition(number x, number y, number z)
Parameters:
numberx: X coordinate.numbery: Y coordinate.numberz: Z coordinate.
getRotation
Returns the ground item Euler rotation.
{x, y, z} getRotation()
Returns {x, y, z}:
Rotation table.
setRotation
Sets the ground item Euler rotation and synchronizes it to relevant players.
void setRotation(number x, number y, number z)
Parameters:
numberx: X rotation.numbery: Y rotation.numberz: Z rotation.
Callbacks
No callbacks.