How do I set up a trigger inside a pawn which only detects one specific actor?
Hi, I hope somebody can help me. Sorry for my bad english. I'm making a little game for a group project. At the beginning of the game, a specific amount of actors are spawned. The Player is a Pawn, who has to hack these actors. I created a Collision Sphere inside the Pawn as an component and set it as an Trigger under collision. When the actors get into the the trigger the bool "isHackable" is set true. I created a reference for the actor blueprint (Prey). How can I make that the trigger only detects the specific actor?
I'm relatively new to scripting so maybe I'm doing something fundamentally wrong. Thank you in advance.
asked Jan 02 '16 at 08:44 PM in Blueprint Scripting
You can get the OtherActor pin and test it with the Equal node against the Prey reference.
answered Jan 02 '16 at 08:55 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here