object reference is not compatable



Hello! Im stuck and dont know how to proceed. As you can see when i try to connect “coin” to cast to AI it doesint work, it says it isint compatable what do i do?

That Coins variable is defined in your GameModeCoins class, so you can only access it from there, you can’t access it from AI.

If you have a Coins variable defined inside your AI class, drag from As AI in the Cast To AI node and then search for Coins.

Thank you, i made it work.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.