HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Lightnings...

11-12-2007, 04:14 PM#1
darkwulfv
Ok, in the AddLightning function, it says:

Collapse JASS:
native AddLightning takes string codeName, boolean checkVisibility, real x1, real y1, real x2, real y2 returns lightning
Where do i get the 'codeName' string for the lightnings? And what's checkVisibility for? (Or does it follow its namesake)

I think the string can be found in the object editor using Ctrl + D... So would CLPB (Chain Lightning - Primary) be one? (for example)
11-12-2007, 04:18 PM#2
Fireeye
Here's a list of (hopefully) all standart lightnings.

CLPB = Chain Lightning - Primary Bolt
CLSB = Chain Lightning - Secondary Bolt
MBUR = Mana Burn - Bolt
CHIM = Lightning Attack - Chimera
AFOD = Finger of Death

---Edit---
Sorry, my first answer were about something different xD
The boolean is declaring if a lightning should be visible if the player can't see the region.
11-12-2007, 04:24 PM#3
darkwulfv
Oh, so I was right. Thanks. And I thought the boolean would do something like that, but I wasn't entirely sure.