And that's it. I wanted to see what that Sequencer Command takes as parameters but it's completely missing from the docs and there's not a single mention in the forums.
Could you please add them to the docs, please?
For anyone else that gets to this thread, I took a look at the code and looks like MoveTowards expects a "CharacterPhysicsManager" as the controlled character, and a "Transform" for the destination.
MoveTowards() is undocummented.
Re: MoveTowards() is undocummented.
Oh by the way, I wanted to see the docs because I defined where Destination is another GameObject in Point A, but the MoveTowards() goes to the Transform of the GameObject where the Dialogue System Trigger lives, Point B.
Code: Select all
MoveTowards(Player, Destiantion)
Re: MoveTowards() is undocummented.
Hi,
It's MoveTo().
The parameters are flipped from your example:
This is so you can omit the mover if you want to use the node's speaker:
It's MoveTo().
The parameters are flipped from your example:
Code: Select all
MoveTo(Destination, Player)
Code: Select all
MoveTo(Destination)
Re: MoveTowards() is undocummented.
Hi Tony, thanks for the quick answer!
I now understand my confusion. MoveTowards is a custom Sequence my colleague made a long time ago, since I just joined him I wasn't aware of that.
Now that I know that I'll change the code myself.
If you want to see the differences between the sequences:
Sorry for wasting your time!
I now understand my confusion. MoveTowards is a custom Sequence my colleague made a long time ago, since I just joined him I wasn't aware of that.
Now that I know that I'll change the code myself.
If you want to see the differences between the sequences:
- MoveTo moves the character instantly or during n seconds, but the character speed is not consistent depending on where the character triggers the sequence and it doesn't use any animation. That's good for teleport events or carefully scripted events.
- MoveTowards, in the other hand, takes the character and moves it to the Transform with the character's default speed AND does use the animation.
Sorry for wasting your time!
Re: MoveTowards() is undocummented.
Got it. No worries!