Announcement

Collapse
No announcement yet.

Check which object is overlapping the trigger

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    @Jamendxman3

    That works thanks.
    Never worked with 'cast' before. But adding "cast to [blueprint name]" does indeed give you a true/false.
    So now i have a triggerbox --> on begin overlap --> cast to [blueprint name] --> if true activate custom event, else print something for visual feedback.

    Solved. Thanks.
    Last edited by stressless; 07-26-2015, 04:36 PM.

    Leave a comment:


  • replied
    Originally posted by stressless View Post
    Hi guys.

    I'm working on a button smash type of mini game, and i have made a few objects (circle, square, cone).
    These objects drop down from the sky and at some point will hit a triggerbox. When that object overlaps the triggerbox i need the trigger to know which type of object is overlapping him.
    Based on what object it is (circle, square or cone) the trigger will set a few custom events i already made.

    Now, i was wondering if you guys could point me in the right direction here.
    What i have right now is that when a object overlaps the trigger it will set all custom events (no matter the type of object, which in result defeats the purpose).


    Greetings.
    When an object overlaps, cast to the circle's BP, use the Hit Actor as the Object input for the cast. If the cast works, a circle is overlapping, otherwise cast to your next object (square) if the cast failed, and so on...

    Leave a comment:


  • started a topic Check which object is overlapping the trigger

    Check which object is overlapping the trigger

    Hi guys.

    I'm working on a button smash type of mini game, and i have made a few objects (circle, square, cone).
    These objects drop down from the sky and at some point will hit a triggerbox. When that object overlaps the triggerbox i need the trigger to know which type of object is overlapping him.
    Based on what object it is (circle, square or cone) the trigger will set a few custom events i already made.

    Now, i was wondering if you guys could point me in the right direction here.
    What i have right now is that when a object overlaps the trigger it will set all custom events (no matter the type of object, which in result defeats the purpose).


    Greetings.
Working...
X