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
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#2
RE: Camera flash script

Here's how to fix it:

Move this...
if( !GetLanternActive()==true)

        {

        AddTimer("", 0.1, "LanternOff");

        }

...from OnStart to a new timer function of its own which starts ticking once the map starts. Make the timer repeat itself very quickly, and make it keep renewing itself.

This is so that you can constantly check to see if your lantern is on, or not.

[Image: Tv0YgQb.gif]
Image by BandyGrass
09-08-2013, 02:43 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: 2 Guest(s)