Trying to design an enemy that starts on the ceiling, but once it has been damaged successfully, the prefab should change to a "grounded" look and the position should change to the floor. What step do I change the prefab, and do I use the same mecanim as I have for the original prefab and add the animations in, or should I somehow change the mecanim that the combatant is using? Should the ceiling position simply be a status that applies these changes when it is removed (via damage)?
  • edited October 7
    Use the combatant's Conditional Prefabs for that, e.g. using an (object) variable condition to control when to change it, e.g. setting the change up as an ability for the enemy to use, animating and changing the prefab (by changing the object variable) in the battle events.
    You can also change the battle spot's position in the battle event, it's available as a Waypoint object instead of Actor.

    Animation wise, since it's still the same combatant using the same animation setup, it should match the original's animator controller (depending on your ORK animation setup), e.g. parameter or state names should be the same to play the same animations (even if they're different).


    Another alternative would be having both versions on the same prefab, enabling/disabling them as needed (can also be done via events using an Activate Object node).
    Post edited by gamingislove on
    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!
  • That explanation was perfect thank you so much as always!
Sign In or Register to comment.