Home   Help Search Login Register  

Author Topic: Lightning on demand?  (Read 1375 times)

0 Members and 1 Guest are viewing this topic.

Offline D_P_

  • Members
  • *
  • YAY! I'm a lama again! ...oh wait.
    • ArmaAddons
Lightning on demand?
« 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:
just setpos & forgetpos!

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Lightning on demand?
« Reply #1 on: 30 Sep 2007, 16:38:12 »
Yep, as a particle activated with drop command. Check mando_storm  in the Editors Depot and see how it is used there (lightning + light effect over the terrain).
« Last Edit: 30 Sep 2007, 16:41:16 by Mandoble »

Offline D_P_

  • Members
  • *
  • YAY! I'm a lama again! ...oh wait.
    • ArmaAddons
Re: Lightning on demand?
« Reply #2 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:
just setpos & forgetpos!

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Lightning on demand?
« Reply #3 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?

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: Lightning on demand?
« Reply #4 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).

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Lightning on demand?
« Reply #5 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
I know a little about a lot, and a lot about a little.

Offline D_P_

  • Members
  • *
  • YAY! I'm a lama again! ...oh wait.
    • ArmaAddons
Re: Lightning on demand?
« Reply #6 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:
just setpos & forgetpos!