Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: stigma on February 14, 2015, 11:10:46 AM

Title: enable/disable script with Enable Behaviour
Post by: stigma on February 14, 2015, 11:10:46 AM
hello,
I want to enable and disable a script. to activate it work but when I leave the area, the script is not disabled. what for?
Thank you for your help
(http://www.maximages.fr/forums/3D/playmaker/behaviour1.jpg)
(http://www.maximages.fr/forums/3D/playmaker/behaviour2.jpg)
Title: Re: enable/disable script with Enable Behaviour
Post by: coffeeANDsoda on February 14, 2015, 04:09:30 PM
And you don't have 2 trigger events that have one parameter On trigger on and the other On trigger exit?
Title: Re: enable/disable script with Enable Behaviour
Post by: stigma on February 15, 2015, 09:53:24 AM
I did with one FSM and it's the same thing
(http://www.maximages.fr/forums/3D/playmaker/mirror_off.jpg)
Mirror inspector :
(http://www.maximages.fr/forums/3D/playmaker/mirror_inspec.jpg)
Title: Re: enable/disable script with Enable Behaviour
Post by: ermak on February 15, 2015, 10:28:55 AM
ok , you want to enable/disable script

Can you try this from attachments in this post? And see if working...

Also, instead of using "Wait" action you can change it to "Trigger Event".
Title: Re: enable/disable script with Enable Behaviour
Post by: stigma on February 16, 2015, 12:23:49 PM
it does not work  :(

Edit :
It's ok if the componant is disabled too !
Title: Re: enable/disable script with Enable Behaviour
Post by: jeanfabre on August 17, 2015, 02:34:55 PM
Hi,

 You can reference a disabled component this way.

 instead, you have a to store the Component in a FsmObject Variable, so that even when disabled, you have a pointer to it, then it works.

 so create a FsmObject of the type of your component you want to enable disable, and then use that FsmObject in your Actions in the "component" property

 Bye,

 Jean