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
Thunder lights ?
narutohokager Offline
Member

Posts: 149
Threads: 28
Joined: Jan 2011
Reputation: 0
#1
Thunder lights ?

Hi everybody Big Grin
So I would like to make thunder as in the beginning of the game when Daniel wake up.
How do that ?
Thank Wink

Sorry for my bad english
Amnesia The Revenge - Chapter 1
12-03-2011, 06:21 PM
Website Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: Thunder lights ?

(12-03-2011, 06:21 PM)narutohokager Wrote: Hi everybody Big Grin
So I would like to make thunder as in the beginning of the game when Daniel wake up.
How do that ?
Thank Wink
It's a little hard to explain, though I made recurring lightning in my custom menu background. Are you trying to script one or two flashes, or will it be constant?
12-03-2011, 06:46 PM
Find
narutohokager Offline
Member

Posts: 149
Threads: 28
Joined: Jan 2011
Reputation: 0
#3
RE: Thunder lights ?

With SetEntityActive you want say ?
Like this :
Quote:Vois OnStart()
{
SetEntityActive("SpotLight_1", true);
AddTimer("", 1.2f, "ThunderOff");
}
void ThunderOff(string &in asTimer)
{

SetEntityActive("SpotLight_1", false);

}

Sorry for my bad english
Amnesia The Revenge - Chapter 1
(This post was last modified: 12-04-2011, 10:03 AM by narutohokager.)
12-04-2011, 10:00 AM
Website Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Thunder lights ?

You don't use SetEntityActive for lights; you have to use SetLightVisible.

Tutorials: From Noob to Pro
12-04-2011, 11:03 AM
Website Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#5
RE: Thunder lights ?

Yes, and I suggest taking the timer down to maybe 0.8f because 1.7 seconds is a pretty long flash for lightning.
12-04-2011, 05:20 PM
Find
narutohokager Offline
Member

Posts: 149
Threads: 28
Joined: Jan 2011
Reputation: 0
#6
RE: Thunder lights ?

Thank you, i will do it and I tell you then

Sorry for my bad english
Amnesia The Revenge - Chapter 1
12-04-2011, 08:50 PM
Website Find




Users browsing this thread: 1 Guest(s)