playMaker

Author Topic: Player teleport  (Read 1344 times)

mike32

  • Playmaker Newbie
  • *
  • Posts: 8
Player teleport
« on: October 22, 2018, 04:22:27 AM »
HI

I am new to playmaker and just learning all the features.

I am making a walkthrough of an interior space and I need to teleport the player back to the elevator on a button press and face the doer ready to exit.

I have it working to teleport the player to the elevator using get position on the teleport location and get position on the player. However I cant get it working to rotate the player to look at the elevator door as it teleports.

Currently I have tried to set it up as get rotation on the teleport location (cube)
and set rotation on the player but it does not work.

Any help would be really appreciated.

Thanks



Athin

  • Full Member
  • ***
  • Posts: 163
Re: Player teleport
« Reply #1 on: October 22, 2018, 07:40:12 AM »
I think using the Look At Action could help with that.  Just set the action to look at whatever you want to while its teleporting.

mike32

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Player teleport
« Reply #2 on: October 22, 2018, 08:41:49 AM »
Hi

Thanks for the tip, I tried out the look at action and it does work however it does not stay looking at the door.

it looks at the door but then jumps back to its original rotation, is there a way I can set it to stay at the new rotation?

Thanks for the help

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Player teleport
« Reply #3 on: October 23, 2018, 04:37:11 AM »
hi.
You might want to use vector rotate toward