Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: midgear on February 12, 2017, 04:19:47 PM

Title: enable behavior not working
Post by: midgear on February 12, 2017, 04:19:47 PM
Hi guys, I made a teleporter in my game and I'm using a "move towards"   action to do this but the problem is my character's cloth component (her skirt) is getting screwed up because of this. So I thought I would use a "enable behavior" action to turn off the cloth when she's moving via teleport and turn back on when it's done. The thing is I cant get the "enable behavior" to work at all, even when testing just that action.
Here is a screen capture:
(http://mockgirl.com/wp-content/uploads/2017/02/TextAction.png)

What the hell am I doing wrong?
Title: Re: enable behavior not working
Post by: jeanfabre on February 13, 2017, 02:47:36 AM
Hi,

you seem to connect both the behavior and a component, you should only do one, either the behavior or the component field.

Bye,

 Jean
Title: Re: enable behavior not working
Post by: midgear on February 13, 2017, 03:58:23 AM
you seem to connect both the behavior and a component, you should only do one, either the behavior or the component field.

I just Tried both ways and it's still not working.

I have been running into this problem whenever I use "enable behavior",  I tried to use it to turn on and off my path-finding for a NPC and it didn't work there either.
Title: Re: enable behavior not working
Post by: jeanfabre on February 14, 2017, 01:57:58 AM
Hi,
 
the problem might be that even when a behavior is turned Off some Unity callbacks are still received and processed.


Bye,

 Jean