S0EPacketSpawnObject
Last updated
Represents a packet that is sent when an object/entity is spawned
getEntityID():
number
Gets the ID of the spawned entity
Returns
number
The entity ID
getPacketID():
string
Get the ID of the packet.
Returns
string
The ID of the packet.
Inherited from
getPitch():
number
Gets the pitch rotation of the entity
Returns
number
The pitch angle
getSpeedX():
number
Gets the X velocity of the entity
Returns
number
The X velocity
getSpeedY():
number
Gets the Y velocity of the entity
Returns
number
The Y velocity
getSpeedZ():
number
Gets the Z velocity of the entity
Returns
number
The Z velocity
getType():
number
Gets the type ID of the spawned entity
Returns
number
The entity type ID
getX():
number
Gets the X position of the entity
Returns
number
The X coordinate
getY():
number
Gets the Y position of the entity
Returns
number
The Y coordinate
getYaw():
number
Gets the yaw rotation of the entity
Returns
number
The yaw angle
getZ():
number
Gets the Z position of the entity
Returns
number
The Z coordinate
setSpeedX(
var1):void
Sets the X velocity of the entity
Parameters
var1
number
The new X velocity
Returns
void
setSpeedY(
var1):void
Sets the Y velocity of the entity
Parameters
var1
number
The new Y velocity
Returns
void
setSpeedZ(
var1):void
Sets the Z velocity of the entity
Parameters
var1
number
The new Z velocity
Returns
void
setX(
var1):void
Sets the X position of the entity
Parameters
var1
number
The new X coordinate
Returns
void
setY(
var1):void
Sets the Y position of the entity
Parameters
var1
number
The new Y coordinate
Returns
void
setZ(
var1):void
Sets the Z position of the entity
Parameters
var1
number
The new Z coordinate
Returns
void
Last updated