getComponents([number entity]) → array<integer> components
Returns the components equipped by the entity entity, in the order of the equipment. Each component is an item id: the one of the COMPONENT_* constants, of getInventory and of setLoadout.
if (!inArray(getComponents(), COMPONENT_NEPHELIUM)) {
debugW('No nephelium equipped')
}
debug(getComponents(getNearestEnemy()))
if (!Fight.me.components.includes(Entity.Component.NEPHELIUM)) {
Debug.log('No nephelium equipped')
}
Debug.log(Fight.getNearestEnemy().components)
if Entity.Component.NEPHELIUM not in Fight.me.components:
Debug.log('No nephelium equipped')
Debug.log(Fight.getNearestEnemy().components)
null if the entity does not exist.beforeFight, the components of another entity are not known yet: the function returns null.Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.