playMaker

Author Topic: Smooth Look At and Smooth Look At Direction not Finishing  (Read 3004 times)

rygaar

  • Playmaker Newbie
  • *
  • Posts: 2
Smooth Look At and Smooth Look At Direction not Finishing
« on: April 15, 2012, 12:44:21 AM »
Hi,

I have just started using playMaker and have hit a problem where SmoothLookAt and SmoothLookAtDirection never finish.  I have searched the forums and there are a few threads from a long time ago that mention this was a bug and would be fixed.  Its still occurring (at least for me).

So are these actions supposed to finish?  I have V1.3.2 (24788) of playMaker.  Any help greatly appreciated.

cheers
Liam

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Smooth Look At and Smooth Look At Direction not Finishing
« Reply #1 on: April 15, 2012, 11:52:35 AM »
Yeah, those actions don't currently send FINISH events. I'll look into adding this...

In the meantime, you can try Get Angle To Target:
https://hutonggames.fogbugz.com/default.asp?W494

With a Float Compare to send an event when the angle is small enough.

Or use a trigger "sensor" in front of the character to send events to stop the Look At. You can get pretty creative with trigger sensors - very useful for AI transitions.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Smooth Look At and Smooth Look At Direction not Finishing
« Reply #2 on: April 15, 2012, 01:25:56 PM »
I've updated Smooth Look At to include a Finish Event:
http://hutonggames.com/playmakerforum/index.php?topic=1402.0

Please give it a try and let me know if it works the way you'd expect.

rygaar

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Smooth Look At and Smooth Look At Direction not Finishing
« Reply #3 on: April 16, 2012, 06:37:25 AM »
Thanks Alex, i'll give it a go.

cheers