I have a script that explodes an object (using the Exploder package) and I want to turn it off at the start Cutscene and then if the player goes thru a trigger I turn it on. I place the explode script inside an Empty GameObject and use .the SendMessage turn Off but it does nothing, as soon as the game starts it explodes. I tried Object: Visibility : invisible but it also does not prevent the explode script to activate as soon as the scene starts.
How else can I control the turning on/off of a GameObject with a script inside? In general how can I control a script from starting by itself?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
If your Exploder object has a script with a function to turn it off, you can call it directly using the Object: Call event Action.
Thanks again !! I just inserted a TurnOff function in the script and it worked of course. I learned now the real use of the SendMessage, normally used for Turning On/Off actions(cutscenes,triggers,.)
Incidentally I wanted to know the useage of the Object:CallEvent but it does not exist in your AC Manual