Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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
-
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.
-
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)
-
Hi,
Thanks for your response, Im using my c# script and Animator component how about this?