playMaker

Author Topic: Check if Agent Destination Exists  (Read 1154 times)

mn6000

  • Playmaker Newbie
  • *
  • Posts: 17
Check if Agent Destination Exists
« on: September 13, 2016, 05:41:44 PM »
I'm currently using Agent Destination as Game Object to path to objects and trigger events but I don't see how to handle if the Game Object becomes destroyed while pathing. Is there an action that checks similar to "Get Agent Remaining Distance"?

Thank you.

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Check if Agent Destination Exists
« Reply #1 on: September 14, 2016, 01:26:35 AM »
You could do a null check by using the "Game Object is Null" action before using the Set Destination action- so its it null it doesn't try to run it-
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!