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 the Flashlight\Lantern FLICKER?[SOLVED] Thanks Fatalist.
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#1
How to make the Flashlight\Lantern FLICKER?[SOLVED] Thanks Fatalist.

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.
(This post was last modified: 09-21-2014, 01:29 PM by DnALANGE.)
09-13-2014, 03:59 PM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#2
RE: How to make the Flashlight\Lantern FLICKER?

(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?

(This post was last modified: 09-13-2014, 04:12 PM by Radical Batz.)
09-13-2014, 04:08 PM
Find
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#3
RE: How to make the Flashlight\Lantern FLICKER?

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

Derp.
09-13-2014, 04:11 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
RE: How to make the Flashlight\Lantern FLICKER?

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.

(This post was last modified: 09-13-2014, 04:12 PM by Mudbill.)
09-13-2014, 04:11 PM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#5
RE: How to make the Flashlight\Lantern FLICKER?

(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

09-13-2014, 04:17 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#6
RE: How to make the Flashlight\Lantern FLICKER?

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.

09-13-2014, 04:23 PM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#7
RE: How to make the Flashlight\Lantern FLICKER?

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: (Select All)
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 -_-

(This post was last modified: 09-13-2014, 04:31 PM by Radical Batz.)
09-13-2014, 04:29 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#8
RE: How to make the Flashlight\Lantern FLICKER?

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.
(This post was last modified: 09-13-2014, 05:02 PM by DnALANGE.)
09-13-2014, 05:01 PM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#9
RE: How to make the Flashlight\Lantern FLICKER?

(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

(This post was last modified: 09-13-2014, 05:05 PM by Radical Batz.)
09-13-2014, 05:05 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#10
RE: How to make the Flashlight\Lantern FLICKER?

Anybody who DOES know how to do this?
09-14-2014, 12:57 PM
Find




Users browsing this thread: 3 Guest(s)