FadeLightTo not working with asterisk? - 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: FadeLightTo not working with asterisk? (/thread-25478.html) Pages:
1
2
|
RE: FadeLightTo not working with asterisk? - Mudbill - 06-15-2014 Just placed down 3 point lights with default name (PointLight_1, 2 and 3), used the same script with "PointLight_*" as the name, but nope. Whattup? o.o "PointLight_1" worked for one of them, but asterisk didn't work for any. Can anyone test if this works at all? I could've sworn asterisk worked with this script, but I'm starting to doubt it... RE: FadeLightTo not working with asterisk? - Lizard - 06-15-2014 perhaps try this for(int i=1;i<=3;i++) FadeLightTo("PointLight_"+i, 0, 0, 0, 0, 0, 1); RE: FadeLightTo not working with asterisk? - Mudbill - 06-15-2014 I know that method works, the only problem was that I couldn't use it with the co-ord system as efficiently, since they have 4 altering numbers. ALTHOUGH, I did mess around with it for a while, and I think I got something I can use. PHP Code: for(int x = 0; x <= 5; x++) for(int y = 0; y <= 5; y++) { I haven't seen any problems with it yet, so I suppose it's a solution I can use. It doesn't really answer the original question about why the asterisk wasn't working, but it'll do. RE: FadeLightTo not working with asterisk? - Daemian - 06-15-2014 It only replaces numbers, in my exp. |