Jump to content

Recommended Posts

local pos = TheInput:GetWorldPosition()
TheWorld:PushEvent("ms_sendlightningstrike", pos)

This spawns lightning at the position of the cursor. Swap out the "pos" with the position where you want the lightning to strike. Be aware, though, it's not 100% accurate.

Hey thanks for your help dude!

So do you know maybe how I can get this lightningbolt to strike a certain entity? I have a equip which based on a value I want it to strike the owner with a lightning bolt, but I can't figure out how to do it myself because I'm soo smart, thanks again for the help  :D!

Nope. Lightning strikes can only be commanded at a certain position, and it determines for itself which thing it's gonna hit. You're gonna have to build it yourself, if you want it to work in another way. Find the ms_sendlightningstrike event and see how it works.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...