playMaker

Author Topic: Breadcrumbs  (Read 896 times)

mikejkelley

  • Full Member
  • ***
  • Posts: 136
    • View Profile
Breadcrumbs
« on: January 28, 2015, 07:34:51 AM »
I'm trying to create a very rudimentary waypoint system similar to UT2K4's. I'm using Raycast and Find Closest to determine which breadcrumb is closest and unobstructed, saving as closestBreadcrumb GO var. I then Move To closestBreadcrumb. Then I save closestBreadcrumb to Ineligible1 GO var and step Inelligible1 to Ineligible and Ineligible to Eligible. The idea is to make the closestBreadcrumb breadcrumb ineligible for two turns so that the sphere doesn't just ping-pong between the two closest breadcrumbs. The problem is that closestBreadcrumb never becomes Ineligible1.

http://www.nickelcitypixels.com/breadCrumbs.unitypackage

Any advice, much appreciated!

//To get it working at all you need to add tags "obstructed" and "inelligible" (sic) and load scene1a.
« Last Edit: January 28, 2015, 07:42:44 AM by mikejkelley »

mikejkelley

  • Full Member
  • ***
  • Posts: 136
    • View Profile
Re: Breadcrumbs
« Reply #1 on: January 28, 2015, 07:50:58 AM »
So it seems to work if you swap Variable and Game Object in the Set Game Object command and uncheck Every Frame.