playMaker

Author Topic: enable behavior not working  (Read 2614 times)

midgear

  • Playmaker Newbie
  • *
  • Posts: 13
  • Yeah How bout that?
enable behavior not working
« 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:


What the hell am I doing wrong?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: enable behavior not working
« Reply #1 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

midgear

  • Playmaker Newbie
  • *
  • Posts: 13
  • Yeah How bout that?
Re: enable behavior not working
« Reply #2 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.
« Last Edit: February 13, 2017, 04:07:45 AM by midgear »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: enable behavior not working
« Reply #3 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