alloc
Allocates a new world entity with the provided arguments.
Return
either a new world entity avatar, or a pooled one that has been updated to contain the provided params.
Parameters
the index of the world entity
the width of the world entity in zones (8 tiles/zone)
the height of the world entity in zones (8 tiles/zone)
the absolute fine x coordinate of the avatar. This can be calculated by doing x * 128 with absolute coord grid values.
the fine y coordinate (height) of the avatar. Note that as of revision 226, this property is overwritten by the ground height and has no impact on the perceived height of the world entity.
the absolute fine x coordinate of the avatar. This can be calculated by doing z * 128 with absolute coord grid values.
the height level of the world entity.
the angle to face
the offset of the world entity's model from the center of the defined world entity space on the x-axis. A positive value moves the model left, a negative value moves the model to the right. Units are in fine coord, where 128 is equal to one full game square.
the offset of the world entity's model from the center of the defined world entity space on the z-axis. A positive value moves the model down, a negative value moves the model up. Units are in fine coord, where 128 is equal to one full game square.