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


How to make the Flashlight\Lantern FLICKER?[SOLVED] Thanks Fatalist. - DnALANGE - 09-13-2014

I have this question about how to manege to make the flashlight\lantern FLICKER...
I know it is possible but how?
Global.hps'?
Script...
Through the modeleditor's name? what name and what (new) function (131111)
--
Hopefully somebody know how to do this or a work around to make this work.
Thanks in advance.


RE: How to make the Flashlight\Lantern FLICKER? - Radical Batz - 09-13-2014

(09-13-2014, 03:59 PM)DnALANGE Wrote: I have this question about how to manege to make the flashlight\lantern FLICKER...
I know it is possible but how?
Global.hps'?
Script...
Through the modeleditor's name? what name and what (new) function (131111)
--
Hopefully somebody know how to do this or a work around to make this work.
Thanks in advance.

Do you want this to happen all the time or at a certain script?

Cause if you want it to happen every time then you can just go in the model editor and make the pointlight of your flashlight/lantern hand model and tick flicker on and there are a few options in the flicker bar that you can mess around with.

Example:

[Image: B05AYPB.png?1]

If that's not what you want then what exactly do you want to do?


RE: How to make the Flashlight\Lantern FLICKER? - Neelke - 09-13-2014

I'm guessing you want it to be like in Penumbra, where the light flickers when close to run out of batteries?


RE: How to make the Flashlight\Lantern FLICKER? - Mudbill - 09-13-2014

What about SetLightFlickerActive(string& asLightName, bool abActive); ?

You predefine how it will flicker in the entity, then use EntityName_LightName in the script? I've never tried it so I don't know if it'll work, but it's worth a shot.


RE: How to make the Flashlight\Lantern FLICKER? - Radical Batz - 09-13-2014

(09-13-2014, 04:11 PM)Mudbill Wrote: What about SetLightFlickerActive(string& asLightName, bool abActive); ?

You predefine how it will flicker in the entity, then use EntityName_LightName in the script? I've never tried it so I don't know if it'll work, but it's worth a shot.

Hmm but I think what Dnalange wants is for the hand model to flicker not for the entity?
Not sure if SetLightFlickerActive(string& asLightName, bool abActive); works also with hand models


RE: How to make the Flashlight\Lantern FLICKER? - Mudbill - 09-13-2014

If you want an effect similar to the AMFP lantern, maybe it's worth noting that the AMFP lantern entity already has flicker enabled.

By the looks of it, it's always on, but probably uses something to freeze it from flickering for the most part.


RE: How to make the Flashlight\Lantern FLICKER? - Radical Batz - 09-13-2014

Hmm you're lucky dnalange cause I have bad news and good news! The good news is I checked the mfp scripts and found this new script

PHP Code:
SetLanternFlickerActive(false); 
SetLanternFlickerActive(true); 

which does not exist in the original amnesia scripts

The bad news is.... It doesn't come with the mfp patch -_-


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

I want to activate it by script myself/...
For scareevents.
Like a monster passes by -> i want to activate the flickering.
I have tried a couple of thingy's... but not working yet..

Shoudl we be able to activate the SPOTLIGHT by script.
The spotlight of the lantern\flashlight.
I've seen some guys doing this tho...
But, never explaned how this works..
Maybe Jens\Patrik or anyone can explane if this is even possible.


RE: How to make the Flashlight\Lantern FLICKER? - Radical Batz - 09-13-2014

(09-13-2014, 05:01 PM)DnALANGE Wrote: I want to activate it by script myself/...
For scareevents.
Like a monster passes by -> i want to activate the flickering.
I have tried a couple of thingy's... but not working yet..

Shoudl we be able to activate the SPOTLIGHT by script.
The spotlight of the lantern\flashlight.
I've seen some guys doing this tho...
But, never explaned how this works..
Maybe Jens\Patrik or anyone can explane if this is even possible.

If you want to then you can send them a pm with some information! Smile
Oh and I see you're gonna make another mod?

Congrats


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

Anybody who DOES know how to do this?