playMaker

Author Topic: How to turn around player when he enrets the trigger?  (Read 561 times)

Argorox

  • Playmaker Newbie
  • *
  • Posts: 1
How to turn around player when he enrets the trigger?
« on: November 11, 2020, 07:12:38 AM »
Hello
I am new. I'm trying to make some simple 3d game with a walking character.
I've made a box and set to it a trigger collider. Now, I want to turn a Player 180 degrees around Y axis automatically when he enters that trigger. How to do that with FSM?

I found that I can use "Set rotation" but don't know how to connect trigger with the Player. Help

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: How to turn around player when he enrets the trigger?
« Reply #1 on: November 14, 2020, 06:35:54 AM »
Hi.
I would suggest to look to some tutorials first to get familiar with playmaker.

A trigger event can store the object that got triggered.

But you could also set your player as a global object and use that to target player from the trigger script.