Test the relation of an equipped (!) component instance to some component type.
The relation is NOT hierarchically unidirectional (not what programmers would expect from "derivative relations").
It is unclear so far if the "likeliness" is determined by a common construction ingredient like the "Small Turret" or if some other relation mechanism (like being a "turret" or being a "mining tool") is applied. Since the game has a lot of purposes for things and a lot of attributes those can hold, is remains to be clarified what of those possibilities is actually used for this script function as a means of differentiating versus unifying the components.
For example, the following derivative relations hold:
- "Viral Turret" is like "Small Advanced Turret" is like "Small Turret", but also like "Pulse Laser" and "Photon Cannon" (all have a common "ancestor" ingredient: "Small Turret")
- "Laser Mining Tool" is like "Miner"
Has Like Component |
||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
File:Instructions-Has Like Component.png
|
||||||||||||||||||||||||||
Checks Unit for a component type
|
||||||||||||||||||||||||||
Instructions | |
|---|---|
| Unit | |
| Move | |
| Component | |
| Flow | |
| Math | |
| Global | |