Frictional Games Forum (read-only)
How to make the Flashlight\Lantern FLICKER?[SOLVED] Thanks Fatalist. - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How to make the Flashlight\Lantern FLICKER?[SOLVED] Thanks Fatalist. (/thread-26118.html)

Pages: 1 2 3


RE: How to make the Flashlight\Lantern FLICKER? - Fatalist - 09-20-2014

(09-20-2014, 11:56 AM)DnALANGE Wrote: This won;t work!
GIve us a small video then please..
From start to end..
From Modeleditor -> ingame test..
Everyone says it is NOT possible, even Patrik PM's it to me..
Playerhands... wher do you get that name from?
I have the flashlight, so is that the same name then?
AND how does that function now how to flicker AND how fast to flicker??
Then we must turn 1 spotlight OFF and ACTIVATE the flicker one isn't it??
Your function dons't have a how fast flicker function...

It work in my mod)
Ok, I'm try to explain.

1. Setup your flashlight, like this:
Spoiler below!

[Image: Jn5Rsi.jpg]

2. Write the code. For example,
Code:
void flashlight_flicker(string &in asEntity)
{
SetLightFlickerActive("PlayerHands_SpotLight_3", true);
}
3. Test in game.
https://www.dropbox.com/s/wve4281e8x8h7xg/flashlight_flicker.avi?dl=0


RE: How to make the Flashlight\Lantern FLICKER? - DnALANGE - 09-20-2014

If this works i go crazy.
if i cNt get it to work i will ask again.
thanks for this explanation, i will try tomorrow.
tnx.
back tomorrow when tested.


RE: How to make the Flashlight\Lantern FLICKER? - DnALANGE - 09-21-2014

+ REP
It works amazing!!
Thanks Fatalist!
Just too bad we can not add more spotlights for slower and faster flickering is it...
I will try in a later stage.
THANKS MAN!


RE: How to make the Flashlight\Lantern FLICKER?[SOLVED] Thanks Fatalist. - Fatalist - 09-21-2014

(09-21-2014, 01:28 PM)DnALANGE Wrote: + REP
It works amazing!!
Thanks Fatalist!
Just too bad we can not add more spotlights for slower and faster flickering is it...
I will try in a later stage.
THANKS MAN!

You are welcome! Smile
Heh, We can add more spotlights) Make it radius = 0, turn on via "FadeLightTo" and use Flicker function.