Is it posible to call an anim event then trigger another event that will toggle the enable variable of an entity

is it posible to call an anim event then trigger another event that will toggle the enable variable of an entity

I want to make an door that wil open then toggle an enity off (the triggers) then when the door wil be closed again the same anim event will be called to toggle the triggers on

I also made an picaso for an example

Hi @Pino_Kook,

So if I understand you correctly:

  1. Player enters the trigger, you need to set the anim state of the door to animate. To do that you can use anim state variables, and set it to true. Check this example how it does to punch on P:

https://developer.playcanvas.com/en/tutorials/anim-blending/

  1. You can then add an anim event to that door open state, and as soon as the animation finishes you can disable the trigger or any other entity you like as a response. Check this manual page on how to use anim events:

https://developer.playcanvas.com/en/user-manual/animation/anim-events/

1 Like

tyy!