playMaker

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

dhanze

  • Playmaker Newbie
  • *
  • Posts: 25
    • View Profile
[Need help Asap] Disable Player Control
« on: July 23, 2015, 10:56:30 AM »
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
    • View Profile
    • Defiant Child
Re: [Need help Asap] Disable Player Control
« Reply #1 on: July 23, 2015, 11:04:00 AM »
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
    • View Profile
    • BillsClass
Re: [Need help Asap] Disable Player Control
« Reply #2 on: July 26, 2015, 11:00:45 AM »
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
    • View Profile
Re: [Need help Asap] Disable Player Control
« Reply #3 on: August 02, 2015, 06:37:16 PM »
Hi,

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