playMaker

Author Topic: Negate the raycast returned hit event?  (Read 1506 times)

HeathClose

  • Full Member
  • ***
  • Posts: 226
Negate the raycast returned hit event?
« on: April 25, 2017, 06:50:54 PM »
right now there is a setting in all cast actions to Invert Mask so that you can pick all the layers except those defined to register a hit...

what I need to do is Invert the Return... the opposite of checking for grounded... I need to check if I'm not grounded... I need to stop the player from using a power they can only use grounded... but I don't think that's an option in the action, is it?  I only want to send a "hit event" if it stops hitting the ground layer....

How could I achieve that?

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Negate the raycast returned hit event?
« Reply #1 on: April 25, 2017, 09:08:35 PM »
There is a bool field "store did hit", which you can use to check for a false value.

HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: Negate the raycast returned hit event?
« Reply #2 on: May 04, 2017, 09:36:05 AM »
i'll take a look, thank you