Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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)
-
And you don't have 2 trigger events that have one parameter On trigger on and the other On trigger exit?
-
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)
-
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".
-
it does not work :(
Edit :
It's ok if the componant is disabled too !
-
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