OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started 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:
-
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).
-
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:
-
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?
-
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).
-
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
-
@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: