Skip to content

Instantly share code, notes, and snippets.

@gh-doot
Created February 25, 2021 04:57
Show Gist options
  • Save gh-doot/1e822fe5584c41017611f3af60a6bd2f to your computer and use it in GitHub Desktop.
Save gh-doot/1e822fe5584c41017611f3af60a6bd2f to your computer and use it in GitHub Desktop.
function rocketThrowerObserver()
local q = Events.collect("SwingArmEvent")
while true do
local e = q:next()
if e.item.displayName == "Rocket Thrower" then
local cmd = "/lua p=Entities.find('@p[name=%s]')[1]; rocket(p)"
spell:execute(cmd, e.player.name)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment