playMaker

Author Topic: [SOLVED] activate/deactivate a game object component  (Read 3323 times)

santelia

  • Junior Playmaker
  • **
  • Posts: 78
[SOLVED] activate/deactivate a game object component
« on: June 16, 2012, 05:48:35 AM »
I need to deactivate the Audio Listener component of a camera, and reactivate it further subject to certain conditions.
How can I deactivate/activate a component of a game object with a PM action?
« Last Edit: June 25, 2012, 09:11:20 AM by Alex Chouls »

kiriri

  • Hero Member
  • *****
  • Posts: 506
Re: activate/deactivate a game object component
« Reply #1 on: June 16, 2012, 01:15:35 PM »
you can use the enable behaviour action for that. Or just drag the component from the inspector onto the state action panel and go set property, then inherited -> enabled.
Best,
Sven