Trying to disable a players movement whilst allowing camera movement

Hi

A student of mine is trying to have it so that a when the player stands on a platform (that will then move) that the player cannot move whilst on this platform as it slides around the level but still be able to have camera movement. Can anyone help with this?

I made a little video for a possible implementation:

https://vid.me/68eB

Overview MovingPlatform:

http://image.prntscr.com/image/108b7f2bd5b849a3aef8a7f7c9494755.png

Overview MovingPlatformStop:

http://image.prntscr.com/image/09d6918b5332484696fbdfd0fd5ac442.png

It just uses these blueprint nodes:

  • Get player character
  • Get character movement component
  • Disable movement
  • Attach to actor
  • Detach actor
  • Set movement mode (coming from character movement component), which is set to the state “Walking”

I divided it up in 2 different parts, one enter volume (the platform itself) and another actor with box collision (exit point). You can place the exit point at the end of the location. I just used for demonstration purposes the projectile component. Your student should use a different component like a spline or create other means of platform movement. Hope I could be of help :).

Take care

Thank you, that works perfectly!

Glad to be of help. Have fun :).