Saltar al contenido principal

Búsqueda

  • Agarwel

    As far as I know sorting variables is little bit tricky.
    Do you really need to sort them? Or just find the bigger one? (for example to target closest enemy,..)

    Im not sure what you are trying to achieve, but I wiould look into exclusive gates. If you have multiple gates with the same name, only one of them (stronger signal / higher priority) will be open. So you could use it to for example excivate tag on the enemi with highest health, closest position, etc. You just hook the health value on each enemy into exclusive gate. Only the enemi with highest value will pass the signal to some logic.

Iniciar sesión para dejar un comentario.