EntityRef
An entity is a moving thing in the world. An entity is driven using Entity Controllers
get_id()- Gets the entity ID. Unique per session, may be reused in the future.has_authority()- Returns true if the server can control this entity.get_type()- Entity type name, “Player”, or “Item”.get_pos()- returns a Vector.get_yaw()get_hp()set_hp(points)damage(points)- returns points damaged.get_properties()set_properties(table)- Properties that are not included will not be modified.
get_meta()- See Storage > Key-Value
Only when has_authority() is true:
set_pos(pos)- pos is any valid position (vector, table, etc).set_yaw(yaw)-yawis a float.
Entity Properties
{
-- The material, used to specify rendering
material = "material.png",
-- The collision radius
radius = 0.5,
-- Whether the entity will play footsteps
footsteps = true,
}