Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: bongtack on May 30, 2018, 05:31:01 PM

Title: Change Target Object for the action 'Look At'
Post by: bongtack on May 30, 2018, 05:31:01 PM
Hi I'm using the action 'Look At' and I want to change the target 'Target Object'

when first character triggers with the action 'Trigger event'.

Would there be a way please ?

Thanks a lot

 :)
Title: Re: Change Target Object for the action 'Look At'
Post by: Athin on May 30, 2018, 06:05:40 PM
Set the Target Object to a Variable and set that Variable to whatever you want to look at when you trigger the event.

You can use the Find Game Object if there is only one thing you're looking for or use the trigger event to store whatever triggered it and use the action Set Game Object Var for the target. 

There is a few ways to do it depending on the project.