OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: D_P_ on 30 Sep 2007, 15:20:51

Title: Lightning on demand?
Post by: D_P_ on 30 Sep 2007, 15:20:51
Does anyone know how to call up some nice lightning flashes on demand?
Not just random flashes, but control when it will strike? I remember this could be done in ofp :)...i think :P
anyone one know how? :blink:
Title: Re: Lightning on demand?
Post by: Mandoble on 30 Sep 2007, 16:38:12
Yep, as a particle activated with drop command. Check mando_storm (http://www.ofpec.com/ed_depot/index.php?action=details&id=373&page=0&game=ArmA&type=sc&cat=xyz)  in the Editors Depot and see how it is used there (lightning + light effect over the terrain).
Title: Re: Lightning on demand?
Post by: D_P_ on 30 Sep 2007, 20:22:33
thanks for the link...I downloaded the mission and looked over the script, but editing drop commands is a little beyond my grasp :( I wasn't sure how to 'extract' just the lightning bolt.

What I'm looking to do is have the player's heli get struck by lightning and then crash land on an island - it's for a cinematic to start the mission. is it possible to do this without being a scripting wizard?  :blink:
Title: Re: Lightning on demand?
Post by: Mandoble on 30 Sep 2007, 21:15:46
well, if player is inside the chopper, what he would see is not the lightning itself, but the light of the lightning, is that the case?
Title: Re: Lightning on demand?
Post by: JasonO on 01 Oct 2007, 00:28:27
I believe it's the bolt itself that strikes the ground which randomly appears during a storm.
I don't think its possible since (I believe..) it is a texture applied to some sort of face on the edge of the game (where the sky is).
Title: Re: Lightning on demand?
Post by: Planck on 01 Oct 2007, 13:51:45
The lightning uses two P3d models:

blesk1.p3d
blesk2.p3d

blesk1 uses:

Textures
--------
ca\data\data\blesk_a_ca.paa
and
ca\data\data\default_flash_2pass.rvmat

Sounds
-------
ca\sounds\data\sound\thundershort ... for near sound
ca\sounds\data\sound\thunderlong2 ... for far sound


blesk2 uses:

Textures
--------
ca\data\data\blesk_b_ca.paa
and
ca\data\data\default_flash_2pass.rvmat

Sounds
-------
ca\sounds\data\sound\thunderhard ... for near sound
ca\sounds\data\sound\thunder ... for far sound


This information was brought to you by the letters 'B' and the numbers '1' and '2'

 :cool2:


Planck
Title: Re: Lightning on demand?
Post by: D_P_ on 02 Oct 2007, 02:13:16
@mandoble...I woulda like to have used a 3rd person view of the bolt striking the heli...but the flash also do the trick.
@Planck...lol dude - i dunno what to do with that code  :dunno: