Home Forums General Discussion Stop movement script

Tagged: 

This topic contains 2 replies, has 3 voices, and was last updated by  prime 5 days, 23 hours ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6644

    tool55
    Participant

    I wonder if you can post an example custom action script to stop movement. When my AI character dies, it continues to move toward a move target even though I’ve put a Boolean constraint on the BT to stop it from executing. I can’t seem to find an example of how to set the speed to zero or, alternatively, to stop a move node from executing. Thanks!

    #6645

    Yuewah Chan
    Participant

    you can set aiRig.AI.Motor.DefaultSpeed = 0

    #6650

    prime
    Keymaster

    The AI can’t move if you aren’t telling it to (e.g., your BT Move node). Sounds like your constraint isn’t working correctly - either because the boolean is being reset/not set correctly or because it isn’t the parent of the move node. Can you post a picture of the BT?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.