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
Script Help Lights ^.^ (Fast answer :D)
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#10
RE: Lights ^.^ (Fast answer :D)

(03-22-2014, 02:00 PM)DnALANGE Wrote: I guess you mean this :

void lightsdown(string &in asParent, string &in asChild, int alState)
{
SetLampLit("Torch1", false, false);
SetLampLit("Torch2", false, false);
SetLampLit("Torch3", false, false);
SetLampLit("Torch4", false, false);
SetLampLit("Torch5", false, false);
SetLampLit("Torch6", false, false);
SetLampLit("Torch7", false, false);
}

And so on, just add as how many you need\prefer.

It's easier to do name it (in the Level Editor) Torch_1, Torch_2 and so on so that instead of 6 same function you could just write:
PHP Code: (Select All)
SetLampLit("Torch_*"falsetrue); 

It's easier, cleaner and more efficient that way.

"Veni, vidi, vici."
"I came, I saw, I conquered."
03-23-2014, 01:35 AM
Find


Messages In This Thread
Lights ^.^ (Fast answer :D) - by Straxedix - 03-22-2014, 01:16 PM
RE: Lights ^.^ (Fast answer :D) - by Straxedix - 03-22-2014, 01:20 PM
RE: Lights ^.^ (Fast answer :D) - by DnALANGE - 03-22-2014, 01:57 PM
RE: Lights ^.^ (Fast answer :D) - by Straxedix - 03-22-2014, 01:58 PM
RE: Lights ^.^ (Fast answer :D) - by DnALANGE - 03-22-2014, 02:00 PM
RE: Lights ^.^ (Fast answer :D) - by PutraenusAlivius - 03-23-2014, 01:35 AM
RE: Lights ^.^ (Fast answer :D) - by Straxedix - 03-22-2014, 02:22 PM
RE: Lights ^.^ (Fast answer :D) - by DnALANGE - 03-22-2014, 02:31 PM
RE: Lights ^.^ (Fast answer :D) - by Straxedix - 03-22-2014, 03:12 PM
RE: Lights ^.^ (Fast answer :D) - by DnALANGE - 03-23-2014, 02:22 PM



Users browsing this thread: 3 Guest(s)