πͺ¨EntityService
Service for creating new entities.
Functions
Events.MatchStart(function(event)
-- Add a Barbarian Kit entity to the game when the match begins
local kit = EntityService.spawnKitEntity(KitType.BARBARIAN, BlockService.getAboveRandomBlock())
-- Give the kit entity a rageblade weapon
kit:setHandItem(ItemType.RAGEBLADE)
-- Gives the kit a set of Iron armor
kit:setArmor(ItemType.IRON_HELMET)
end)spawnCreatureEntity(creatureType: CreatureType, position: Vector3, team: Team | nil): CreatureEntity | nil
spawnImageEntity(image: string, position: Vector3): ImageEntity
Last updated