Frictional Games Forum (read-only)
Multiple entities in script selection - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Multiple entities in script selection (/thread-16993.html)



Multiple entities in script selection - FlawlessHappiness - 07-15-2012

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.)


RE: Multiple entities in script selection - Ongka - 07-15-2012

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.


RE: Multiple entities in script selection - FlawlessHappiness - 07-15-2012

YAY!! Thank! Saved my day! This would've been a loooong script Tongue Your awesome!


RE: Multiple entities in script selection - Ongka - 07-15-2012

No problem, if you have other questions feel free to ask Wink