Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Breadman on January 16, 2014, 01:54:31 PM

Title: Suspend Player Input/Disable Keys[SOLVED]
Post by: Breadman 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

Title: Re: Suspend Player Input/Disable Keys
Post by: jeanfabre on January 24, 2014, 08:05:14 AM
Hi,

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

bye,

 Jean
Title: Re: Suspend Player Input/Disable Keys
Post by: Breadman 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?