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
  Morph game object along curve. mikechr2000 5 326 02-04-2025, 09:30 PM
Last Post: _Aka_
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 100 08-30-2024, 09:19 AM
Last Post: _Aka_
  Player move with object mcarman 4 234 07-29-2024, 06:49 PM
Last Post: mcarman
  Removing the objects behind an object alms94 6 312 12-06-2023, 09:31 PM
Last Post: _Aka_

Forum Jump: