Message 1 of 2
How do you enable a light with ms?

Not applicable
03-05-2009
12:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've been trying to enable lights through ms and just can't get it to work. I have a hard coded array of lights. I randomly choose which spot of the array to look at and then try to enable that light.
redLights = #($r1,$r2,$r3)
randNum = random 1 3
redLights.enabled = true
I've tried many combinations of the last line of code with no success. I keep getting undefined errors, enabled property doesn't exist, and so on. So how do I make this work?
redLights = #($r1,$r2,$r3)
randNum = random 1 3
redLights.enabled = true
I've tried many combinations of the last line of code with no success. I keep getting undefined errors, enabled property doesn't exist, and so on. So how do I make this work?