getComponents

getComponents([number entity]) → array<integer> components
Returns the components equipped by the entity entity, as item ids: the value of the COMPONENT_* constants, as in getInventory and setLoadout.

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)
Parameters
Return
Note