Jump to content

Some quotes for custom magic tomes.


Recommended Posts

-- code from brimstone book, put them into the onattack function of the weapon

local num_lightnings = 16
local pt = attacker:GetPosition()

for k = 0, num_lightnings do
    local rad = math.random(8, 10)
    local angle = k * 4 * PI / num_lightnings
    local pos = pt + Vector3(rad * math.cos(angle), 0, rad * math.sin(angle))
    TheWorld:PushEvent("ms_sendlightningstrike", pos)
    Sleep(.3 + math.random() * .2)
end

Well, I don't get what SetElectric means

Link to comment
Share on other sites

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
 Share

×
  • Create New...