Talk:Console/Commands/@comment-200.117.55.118-20140409170750/@comment-62.107.132.241-20140415020156

I made this, just for you.

1. Go to the \data\scripts\ folder, (where consolecommands.lua is located.) and make a new text file.

2. Name the file "custom.lua" (Yes CHANGE the extension, alternatively just copy another .lua file, rename it, and delete everything in it.)

3. paste this code into custom.lua:

function lightningMouse

local mx, my, mz = TheInput:GetWorldPosition:Get

GetSeasonManager:DoLightningStrike(Vector3(mx,my,mz))

end

4. Save the file.

5. Go ingame, and type this in the console: RunScript("custom")

6. To activate it, use this command: lightningMouse

Note: After you've used it once, remember to move your cursor or it will hit you the next time.

Enjoy.

Bonus:

If you want an easy Reveal map, paste this below/above the other piece of code:

function clearfog

GetWorld.minimap.MiniMap:ShowArea(0,0,0,10000)

end

That will work when you do the RunScript("custom"). To activate, just type in clearfog

Or go to this link http://pastebin.com/fJ6bWL2r

- VapingLancer