playMaker

Author Topic: Character controller overwrites set position vector  (Read 1262 times)

secondsight

  • Playmaker Newbie
  • *
  • Posts: 26
Character controller overwrites set position vector
« on: July 23, 2020, 08:41:36 AM »
I try to do a simple teleport action and set the position of the player on key press to a location. I´m using a 3rd person character and camera controller from the asset store with various components. So, for the teleportation to even happen, I need to deactivate a script that controls the character (RPGController in the screenshot).
All works fine, except when I reactivate the character control script and the end, the player object is placed back to the original position where he was right when the action started.

I already tried to access the script in question and find variables for the position and replace them with mine, but I´ve found nothing. I also tried deactivating the whole player object with all needed script for controls, but as soon as this one script is activated again, the player is ported back.

This might be a general "problem" but I have no idea how to solve it and could need some advice !

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Character controller overwrites set position vector
« Reply #1 on: July 23, 2020, 11:38:13 AM »
Hi.
Where did you get the controller script from?

Best is to contact the author as it looks like the script is the issue.
Maybe the script it self has a variable which you can set by using the action Set Properties.

secondsight

  • Playmaker Newbie
  • *
  • Posts: 26
Re: Character controller overwrites set position vector
« Reply #2 on: July 23, 2020, 11:42:46 AM »
Yes, that would be my next step to contact the author. I´ve read the script and try to get some variables out of it via playmaker but found nothing.
Just hat no idea where to start my search  :)