Frictional Games Forum (read-only)

Full Version: How to make the Flashlight\Lantern FLICKER?[SOLVED] Thanks Fatalist.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
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.
(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?
I'm guessing you want it to be like in Penumbra, where the light flickers when close to run out of batteries?
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.
(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
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.
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 -_-
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.
(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
Anybody who DOES know how to do this?
Pages: 1 2 3