Good evening,
I’m trying to understand how to use fennecs in a simple damage workflow.
For example, an Attacker (SimId = 10) can damage a Defender (SimId = 11). We have a DamageRequest(defenderId) component, and the system processes these requests by querying DamageRequest. However, to access the defender’s components directly (Health, MitigationStats, etc.), we need a world API such as FindEntityById(defenderId).
Could you point me to the equivalent of FindEntityById(SimId == 11) , or explain what the recommended alternative is?
Good evening,
I’m trying to understand how to use
fennecsin a simple damage workflow.For example, an
Attacker (SimId = 10)can damage aDefender (SimId = 11). We have aDamageRequest(defenderId)component, and the system processes these requests by queryingDamageRequest. However, to access the defender’s components directly (Health, MitigationStats, etc.), we need a world API such asFindEntityById(defenderId).Could you point me to the equivalent of
FindEntityById(SimId == 11), or explain what the recommended alternative is?