Reply To: NodeCanvas working with Apex Path?

NodeCanvas Forums General Discussion NodeCanvas working with Apex Path? Reply To: NodeCanvas working with Apex Path?

#9254
Gavalakis
Keymaster

Hello,

The problem in your script is that you are casting the action itself as an IMovable instead of the agent. Furthermore you can use the IMovable interface type as the AgentType so that the whole action becomes smaller and reusable in case you want to override the agent. Specifying AgentType to be type of IMovable means that the agent needs to have an IMovable component since thats all that the action needs to work. Here is the script:

Cheers

Join us on Discord: https://discord.gg/97q2Rjh