KitEntity
Extends Entity (includes all the functions and parameters of Entity)
Parameters
kitType: KitType
Which type of Kit the entity is.
Functions
moveTo(position: Vector3): nil
Moves the entity to the specified position.
attack(target: Entity, damage: number): boolean
The entity attacks the target Entity for the specified damage amount. Returns true if the attack was successful.
setSpeed(speed: number)
Sets the walk speed of the entity.
setArmor(armor: ItemType)
Sets armor of the entity.
Examples: ItemType.LEATHER_HELMET, ItemType.IRON_HELMET, ITEM_TYPE.DIAMOND_HELMET
setHandItem(item: ItemType)
Sets the item held in the hand of the entity.
getModel(): Model | nil
Returns the Model of the entity.
Last updated