• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Lightning Questions,,

Status
Not open for further replies.
Level 16
Joined
Oct 12, 2008
Messages
1,570
Hello people,,

I found lots of functions for Lightnings,,
but i had some questions,, which i would like to ask now,,
native GetLightningColorA takes lightning whichBolt returns real

Nice, you can get the Color from a lightning,, but what is color A, i know what the R, G, and B colors are,, they are in RGB-code :grin:,, smart eh?
But the A-color, where is that for? I though transparency, but it says: GetLightningColorA,, so it is a color,,

Next:
native AddLightning takes string codeName, boolean checkVisibility, real x1, real y1, real x2, real y2 returns lightning

This function takes a boolean, what is that boolean for? 'checkVisibility' , what does that stand for?

Thanks! =D

-Yixx,,-
 
Level 6
Joined
Sep 13, 2008
Messages
261
JASS:
native GetLightningColorA takes lightning whichBolt returns real
I do believe
That stands for alpha setting of the color. 0.00-1.00 visibility value
Not sure though


I think the CheckVisibilty is so you can make the effect invisible and make it show up later. true is visible false is invisible
 
Last edited:
Status
Not open for further replies.
Top