Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: stigma on August 08, 2023, 05:20:32 AM

Title: [Solved]impossible to move the player
Post by: stigma on August 08, 2023, 05:20:32 AM
Hi,
I'm using actions that work well to modify objects, but cannot move the Player to a given position. The action is validated but the player does not move.
(https://www.maximages.fr/forums/3D/playmaker/deplacement.png)
Title: Re: impossible to move the player
Post by: djaydino on August 08, 2023, 06:49:12 AM
Hi.
Maybe space need to be set to world.

Maybe you have some character movement interfering (try disabling that)
Title: Re: impossible to move the player
Post by: stigma on August 08, 2023, 08:17:55 AM
self or world does not change anything

yet I can move it with a Get Key Down. But I want to act with a mouse click on an object
(https://www.maximages.fr/forums/3D/playmaker/playmaker2.png)
Title: Re: impossible to move the player
Post by: djaydino on August 08, 2023, 11:50:04 AM
On the last image, you use 'Use Owner'
The other one you are targeting an object (character controller)

if that character controller is used with a Contoller (Simple) Move action.
you might need to disable that while moving the character.
as far as i know the character controller uses translate, which might prevent you to move the object.
Title: Re: impossible to move the player
Post by: stigma on August 13, 2023, 10:16:51 AM
I tried using a global variable but I still don't know how to move my player when it clicks on another object  :-\
Title: Re: impossible to move the player
Post by: djaydino on August 14, 2023, 01:41:48 AM
hi, do you mean like a teleport or you want the player be click to move?
Title: Re: impossible to move the player
Post by: stigma on August 14, 2023, 02:21:31 AM
Yes that's it. Example. The player clicks on an object to be teleported elsewhere.
Title: Re: impossible to move the player
Post by: djaydino on August 14, 2023, 06:43:12 AM
hi.
on the 2nd image the action is set to use owner.
on the first its targeting a first person controller object.

If you did not set your own controller movement and you are using a character controller you probably need to disable the component and then set the position, then enable the controller again
Title: Re: impossible to move the player
Post by: stigma on August 14, 2023, 07:34:01 AM
the second image was just to show how I was doing before. It should not be taken into account.
Title: Re: impossible to move the player
Post by: djaydino on August 14, 2023, 08:08:45 AM
but you are using a character controller?
Title: Re: impossible to move the player
Post by: stigma on August 15, 2023, 10:05:16 AM
yes, an ordinary character
I just want to teleport him when he clicks on a GameObject

Edit:
I succeeded by using an intermediate variable.