playMaker

Author Topic: [Need help Asap] Disable Player Control  (Read 1978 times)

dhanze

  • Playmaker Newbie
  • *
  • Posts: 25
[Need help Asap] Disable Player Control
« 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

intrikit

  • Full Member
  • ***
  • Posts: 132
    • Defiant Child
Re: [Need help Asap] Disable Player Control
« Reply #1 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.

antibob

  • Playmaker Newbie
  • *
  • Posts: 24
    • BillsClass
Re: [Need help Asap] Disable Player Control
« Reply #2 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.

dhanze

  • Playmaker Newbie
  • *
  • Posts: 25
Re: [Need help Asap] Disable Player Control
« Reply #3 on: August 02, 2015, 09:37:16 PM »
Hi,

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