Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: dhanze on July 23, 2015, 01:56:30 PM

Title: [Need help Asap] Disable Player Control
Post by: dhanze on July 23, 2015, 01:56:30 PM
Hello,

How can I pause/disable/deactivate or to stop character player control  when the enemy trigger?? or player will trigger the enemy..

thank you in advance
Title: Re: [Need help Asap] Disable Player Control
Post by: intrikit on July 23, 2015, 02:04:00 PM
You can use the Activate Game Object action and uncheck the Activate box when you enter an enemy trigger. If you don't want the player model to disappear, I would put the controller on another object and deactivate that.

I'm sure there are other ways to do this using variables as well.
Title: Re: [Need help Asap] Disable Player Control
Post by: antibob on July 26, 2015, 02:00:45 PM
Make two different states, one with controls and one without.
Trigger the off/on state as needed. You can have other FSMs trigger the states if you use global events with the "send event" action.

Attached is an example ss.(https://dl.dropboxusercontent.com/u/9205739/Screenshot%202015-07-26%2013.57.26.png)
Title: Re: [Need help Asap] Disable Player Control
Post by: dhanze on August 02, 2015, 09:37:16 PM
Hi,

Thanks for your response, Im using my c# script and Animator component how about this?