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
Camera flash script
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#3
RE: Camera flash script

PHP Code: (Select All)
void OnStart()
    
    {
        if(
GetLanternActive() != true)
        {
        
AddTimer(""0.1f"LanternOff");
        }
            
    }
    
    
void LanternOff(string &in asTimer)
     {
     
SetLanternDisabled(true);
     
AddTimer(""5.0"LanternOn");
     }
    
    
void LanternOn(string &in asTimer)
     {
     
     if(
GetLanternActive()  != false)
        {
        
SetLanternDisabled(false);
        }

     } 

Fixed.

- You forgot to put an f at the first AddTimer.
- Pretty sure it's != not !*parameter* or !==

EDIT: Ninja'd. Oh well.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 09-08-2013, 02:47 PM by PutraenusAlivius.)
09-08-2013, 02:46 PM
Find


Messages In This Thread
Camera flash script - by JonnyAnomaly - 09-08-2013, 02:38 PM
RE: Camera flash script - by Kreekakon - 09-08-2013, 02:43 PM
RE: Camera flash script - by PutraenusAlivius - 09-08-2013, 02:46 PM
RE: Camera flash script - by JonnyAnomaly - 09-08-2013, 03:18 PM
RE: Camera flash script - by Apfel - 09-08-2013, 04:47 PM
RE: Camera flash script - by JonnyAnomaly - 09-08-2013, 05:44 PM



Users browsing this thread: 1 Guest(s)