Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need Help Stopping an Object at a ControlPoint
#3
That solved it perfectly - thank you!

(08-01-2019, 12:50 PM)_Aka_ Wrote: Hi,

Here is the code you need:
Code:
   public void ControlPointReached(CurvySplineMoveEventArgs inArgs)
   {
       if (shouldStop)
       {
           inArgs.Sender.Pause();
           inArgs.Cancel = true;
       }
   }

The Pause call makes the controller pause starting from the next frame. It does not stop the movement currently processed this frame. To stop that movement, setting the Cancel property of the event to true is the key.

Please let me know if you need anything else

Have a nice day
Reply


Messages In This Thread
RE: Need Help Stopping an Object at a ControlPoint - by DCalabrese - 08-01-2019, 01:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Create Game Object Renaming Options rickgplus 1 938 09-23-2025, 09:33 AM
Last Post: _Aka_
  Is there a way to get the position of each ControlPoint in spline by API? Chanon 1 2,137 06-07-2025, 09:44 AM
Last Post: _Aka_
  Morph game object along curve. mikechr2000 5 3,032 02-04-2025, 09:30 PM
Last Post: _Aka_
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 1,720 08-30-2024, 09:19 AM
Last Post: _Aka_

Forum Jump: