How to make a Trigger Box fire to Character only? I already try this method but it’s doesn’t work
my DefaultPawnClass is already ThirdPersonCharacter, do I need to change it?
Thanks ![]()
Ah, sorry. Try this instead!
The one I suggested will only fire if an actor of the exact class triggers the overlap. This should work for any class/ Blueprint inherited from the class.
Image Source: : How to check if an actor is from a certain class? - Programming & Scripting - Unreal Engine Forums
There is another solution which is more complicated, but also can help in long term development.
First go to Project Settings → Engine → Collision and add a new object channel
Then go through all the current presets and change the trace type Player to the same as Pawn trace type.
Now create a new Preset and name it as you like (for example: SpecificTrigger)
Change the collision preset of your trigger (or anything you like) to the new one
In your player character change its object type to Player type
Now you are good to go.
yes Actually I only need it for 1 Trigger Box but actually it works now (thanks to Greywacke)
Anyway of course thank you for your answer I’m sure this will helpfull in the future ![]()
■■■■ man I’m so sorry, the first way you gave me is actually work, it’s my fault I change the Collision Preset to Pawn, and then I change it to default (Trigger) now it works
Thank you ![]()