Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FadeLightTo not working with asterisk?
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#11
RE: FadeLightTo not working with asterisk?

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

(This post was last modified: 06-15-2014, 01:18 AM by Mudbill.)
06-15-2014, 01:17 AM
Find
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#12
RE: FadeLightTo not working with asterisk?

perhaps try this

for(int i=1;i<=3;i++)
FadeLightTo("PointLight_"+i, 0, 0, 0, 0, 0, 1);

CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 06-15-2014, 01:50 AM by Lizard.)
06-15-2014, 01:49 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#13
RE: FadeLightTo not working with asterisk?

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: (Select All)
for(int x 0<= 5x++) for(int y 0<= 5y++) {
    
int a x+1;
    
int b y+1;

    
FadeLightTo("light_x"+x+"y"+y+"_x"+a+"y"+y000001);
    
FadeLightTo("light_x"+x+"y"+y+"_x"+x+"y"+b000001);


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.

(This post was last modified: 06-15-2014, 02:10 AM by Mudbill.)
06-15-2014, 02:09 AM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#14
RE: FadeLightTo not working with asterisk?

It only replaces numbers, in my exp.

06-15-2014, 02:19 AM
Find




Users browsing this thread: 2 Guest(s)