Hi @dogsauce,
Welcome to our community! ![]()
Since we have (bool isActive) as a parameter does this mean that the variable isActive is also set to true?
That’s right. When we call SetLasersActive(true); and pass on the value “true” to the SetLasersActive method, that value gets stored in isActive so we are able to use our passed on value inside the method code block.
And by extension does this mean emissionModule.enabled is set to true?
That’s exactly what happens in the code whenever SetLasersActive(true); gets called. ![]()
See also:
- Forum User Guides : How to mark a topic as solved