- Home /
Question by
SuperPurpleByte · Sep 20, 2014 at 01:27 AM ·
rocket
How to pass bools?
I don't even know if that is the right question.
I have this bool in a script called rocketPropulsion. I want it to be able to be controled by another script called MissileFireSystem
rocketPropulsion
public bool weaponSafe = true;
Missile fireSystem
rockets[rocketToFire].RocketPropulsion.weaponSafe = false;
The problem is the rockets[rocketToFire].RocketPropulsion.weaponSafe = false;
Comment
It looks like you have the right idea, just need to change the second line to:
rockets[rocketToFire].weaponSafe = false;
Your answer
![](https://koobas.hobune.stream/wayback/20220613163355im_/https://answers.unity.com/themes/thub/images/avi.jpg)