playMaker

Author Topic: Suspend Player Input/Disable Keys[SOLVED]  (Read 5640 times)

Breadman

  • Full Member
  • ***
  • Posts: 185
  • Derp
Suspend Player Input/Disable Keys[SOLVED]
« on: January 16, 2014, 01:54:31 PM »
My character movement is handled by a script, basic WASD and some jumping/sliding. I also use WASD within playmaker to detect motion and animate the characters walk/jump, and run cycles. Playmaker does not actually move the character forward/back etc, the script handles that.

There are certain times when I'd like the character to stop moving and animating. Preferably, I'd like to disable the WASD keys from functioning when pressed. Is this possible?

If not, is there a way to disable the script that controls character movement depending on my playmaker state? I found one other similar post which is unresolved:
http://hutonggames.com/playmakerforum/index.php?topic=4984.0

Thankful for any help or advice!! :D

« Last Edit: January 27, 2014, 04:46:37 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Suspend Player Input/Disable Keys
« Reply #1 on: January 24, 2014, 08:05:14 AM »
Hi,

 yes, there is an action for this: "Enable behavior"

bye,

 Jean

Breadman

  • Full Member
  • ***
  • Posts: 185
  • Derp
Re: Suspend Player Input/Disable Keys
« Reply #2 on: January 24, 2014, 01:29:41 PM »
Yay! Thank you! It works :D

Quick question, what does the"component" field do? Will it enable/disable any components in there in addition to the behavior itself?