When enemies in my game attack, I have an event set up to check if the player pressed the block button. Is there a way I can call this inside of another event so that I can continue to manipulate prefabs from the original event?
Post edited by cameronicle on
  • Currently I just have it added in battle animations after the first part of an enemy attack, but it would be useful to be able to do inside of the actual attack itself

    IE for ranged attacks when i want control over when the ranged projectile prefab is destroyed
  • Try using a Move Event on the spawned prefab, it'd have the prefab available as the Moving Object actor.

    Otherwise, you can use global events, though they don't have access to the spawned prefab.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.