Forum rules - please read before posting.

Object - Send Message - enable/disable (attached) Script

Is there currently any option that lets us enable or disable scripts attached to objects

I understand that we can use send message - custom, and influence the script itself, but is there an option to turn it on/ off 


  • edited July 2015
    It wouldn't be possible to have an option that enables/disables any script in AC as standard, but it's simple to add this through custom code.

    Attach a new script with TurnOn() and TurnOff() functions, and write the code to enable/disable your intended component in them, e.g.:
    GetComponent ().enabled = true;
    GetComponent ().enabled = false;
    You can then use the Object: Send message Action to turn them on/off as you like.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.