Hi Justin,
I'm trying to make Moving Platforms work. I'm having some trouble with how to start them from code.
I have a script for calling an elevator to a floor. A floor is a Path(Waypoint struct) array index.
When player interacts, I'm just setting "TargetWaypoint" to the desired index and then calling "Move();"
but I couldn't make it work.
Maybe I'm not getting it but "UpdatePath" checks for "m_MovementType != PathMovementType.Target" and it should call "UpdateWaypoint" with switch case.
Even if "UpdateWaypoint" gets called, "PathMovementType.Target" is not getting the target waypoint from the array. It is just calling "GoToNextWaypoint"
I'm a bit confused on this.
Can you please help me?
I'm trying to make Moving Platforms work. I'm having some trouble with how to start them from code.
I have a script for calling an elevator to a floor. A floor is a Path(Waypoint struct) array index.
When player interacts, I'm just setting "TargetWaypoint" to the desired index and then calling "Move();"
but I couldn't make it work.
Maybe I'm not getting it but "UpdatePath" checks for "m_MovementType != PathMovementType.Target" and it should call "UpdateWaypoint" with switch case.
Even if "UpdateWaypoint" gets called, "PathMovementType.Target" is not getting the target waypoint from the array. It is just calling "GoToNextWaypoint"
I'm a bit confused on this.
Can you please help me?