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 for(int) [SOLVED]
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#10
RE: for(int)

(07-28-2014, 11:51 AM)Romulator Wrote: Wouldn't turning off all the candles result in them being blown out whether they are on either way?

A way to work around it, but is a little tedious and not exactly efficient programming;
Duplicate your lamps, set them to be unlit and in a way, merge them within your lamp. You can disable their visibility if you wish, but you'll need more lamps for that. Change the names of the lit ones to suit your code (assuming you have done this already), then use SetEntityActive() to disable the lit candles/lamps.

Example:
PHP Code: (Select All)
void blow_candles()
{
for(
int i 1<= 13i++)
{
 
SetEntityActive("light_"+ifalse); //disable the lit lights
}

for(
int i 14 <= 27 i++)
{
 
SetEntityActive("light_"+itrue); //enable the unlit lights - if you have them
}


That would be a way to solve it.


Thanks for your support. I think I know how I want this to go off without any troubles.

Again thanks for the help guys

CURRENT PROJECT:
A Fathers Secret == Just started
07-28-2014, 12:02 PM
Find


Messages In This Thread
for(int) [SOLVED] - by Lizard - 07-27-2014, 05:36 PM
RE: for(int) - by PutraenusAlivius - 07-27-2014, 05:50 PM
RE: for(int) - by Rapture - 07-27-2014, 05:51 PM
RE: for(int) - by Lizard - 07-27-2014, 06:13 PM
RE: for(int) - by Mudbill - 07-27-2014, 07:32 PM
RE: for(int) - by Lizard - 07-27-2014, 07:44 PM
RE: for(int) - by Mudbill - 07-27-2014, 11:32 PM
RE: for(int) - by Lizard - 07-28-2014, 11:15 AM
RE: for(int) - by Romulator - 07-28-2014, 11:51 AM
RE: for(int) - by Lizard - 07-28-2014, 12:02 PM
RE: for(int) [SOLVED] - by Mudbill - 07-28-2014, 05:16 PM
RE: for(int) [SOLVED] - by Lizard - 07-28-2014, 08:33 PM
RE: for(int) [SOLVED] - by Mudbill - 07-29-2014, 12:41 AM
RE: for(int) [SOLVED] - by Lizard - 07-29-2014, 07:31 AM



Users browsing this thread: 2 Guest(s)