playMaker

Author Topic: Turret won't go back to looking forward after killing its target.  (Read 914 times)

Krauser1129

  • Playmaker Newbie
  • *
  • Posts: 22
Any advice how to use the transform actions to go back to looking forward?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Turret won't go back to looking forward after killing its target.
« Reply #1 on: September 18, 2020, 02:34:11 AM »
Hi.
Can you give more information on your setup pls.

it very hard to know what's going on without it :)

Krauser1129

  • Playmaker Newbie
  • *
  • Posts: 22
Re: Turret won't go back to looking forward after killing its target.
« Reply #2 on: September 18, 2020, 03:06:31 AM »
I have an FSm on my turret that raycats, compares the hit target to tag "enemy" If it's true, it tells its firing FSM to engage, constantly spawning rounds at regular intervals. Then my turret looks at the target while firing. Once there is no target, my turret stops firing but keeps looking where the enemy last was instead of forward.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Turret won't go back to looking forward after killing its target.
« Reply #3 on: September 18, 2020, 05:34:44 AM »
Hi.
Set a empty object as default position to look at.


When no enemy in sight set that object to look at

Krauser1129

  • Playmaker Newbie
  • *
  • Posts: 22
Re: Turret won't go back to looking forward after killing its target.
« Reply #4 on: September 18, 2020, 06:05:27 AM »
That's so simple I feel like an idiot. I've been hitting this game hard for three days lol thank you so much