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
How to make storm effect?
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: How to make storm effect?

It's very simple: Just a few lines of code:

Make a BoxLight with 0 light (0, 0, 0, 1).

void OnStart()
{
AddTimer("", RandFloat(0.5, 20), "Thunderstrike");
}

void Thunderstrike (sting &in asTimer)
{
FadeLightTo("BoxLight_thunder", 1, 1, 1, 1, -1, 0.1);
AddTimer("", RandFloat(0.5, 20), "Thunder_effects");
}

void Thunder_effects (string &in asTimer)
{
AddTimer("", RandFloat(0.5, 20), "Thunderstrike");
FadeLightTo("BoxLight_thunder", 0, 0, 1, 1, -1, 0.1);
PlayGuiSound("general_thunder.snt", 1);
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
08-11-2013, 11:30 PM
Find


Messages In This Thread
How to make storm effect? - by Slanderous - 08-11-2013, 09:02 PM
RE: How to make storm effect? - by GoreGrinder99 - 08-11-2013, 11:16 PM
RE: How to make storm effect? - by The chaser - 08-11-2013, 11:30 PM
RE: How to make storm effect? - by Slanderous - 08-12-2013, 12:24 PM



Users browsing this thread: 1 Guest(s)