. . . Posted October 17, 2018 Share Posted October 17, 2018 There was a code I had before but I forgot where or what it was so yeah... a little help over here please ! Link to comment Share on other sites More sharing options...
Ultroman Posted October 17, 2018 Share Posted October 17, 2018 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. Link to comment Share on other sites More sharing options...
. . . Posted October 18, 2018 Author Share Posted October 18, 2018 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 ! Link to comment Share on other sites More sharing options...
Ultroman Posted October 18, 2018 Share Posted October 18, 2018 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now