Frictional Games Forum (read-only)

Full Version: Multiple entities in script selection
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm pretty sure i've seen this somewhere,
But in my map i have a lot of light entities that does some changes in a loop-timer.

As the level expands I'm going to use more light entities.
Instead of writing all the light entities inside the script one line by one, isn't there then a way to highlight them all in 1 line?

Like "Spotlight_"+ and something more... i don't know what to put after...

(The reason my level is expanding is because i took one of the maps in my CS, copied it, and made it destroyed, so you are coming back to that map, and recognizing it, but it is destroyed.)
Code:
for(int i=1;i<=10;i++) //If you have 10 lights
        {
            FadeLightTo("PointLight_"+i, 0.0f,0.0f,0.0f,0,0,0);
        }
Just an example, but i think you've got the idea now.
YAY!! Thank! Saved my day! This would've been a loooong script Tongue Your awesome!
No problem, if you have other questions feel free to ask Wink