Blueprint is not working on mobile

I made this blueprint to open a door when the player character passes through the collision box.
This blueprint works when i set to play on desktop but when i try to run it in Standalone Mobile Game it stops working.
The BP First Person and Mobile Characters are almost the same.

I’m pretty sure that that cast is failing, try to print the name of the “other actor” and see if it’s a BP_MobileCharacter or not.

Anyway, I don’t recommend you using Casts to do this kind of thing, use ActorHasTag or an interface to avoid the door dependency on the characters!

1 Like

Sorry, I didn’t understand. How can i make this work.

Sorry, I missed your notification, here’s what you should do instead of Casting:

On both your BP_FirstPersonCharacter and BP_MobileCharacter class details:


Alternatively, you can use interfaces, but they are much more useful and advanced that this specific use-case:

Create an Interface:

Add it to to both your BP_FirstPersonCharacter and BP_MobileCharacter class settings:

Check if the player has it: