Trigger functions on Prone status

Hi, how do I trigger a function to happen every time I am knocked prone?

I was thinking of using a timer to check SVO table for prone status, but is there a more reliable way, as in asking serverside, since serverside is more accurate in tracking my status?

I believe I will need to make going prone an event so it can trigger better?

Comments

  • KlendathuKlendathu Eye of the Storm
    You could use an event handler to fire off gmcp.Char.Afflictions.Add if aff = prone...

    gmcpAffAdd = function()
    local aff = gmcp.Char.Afflictions.Add.name
    if aff == "prone" then
    -- do stuff here
    --elseif aff == "a different aff" then
    -- do different stuff here
    end
    end

    registerAnonymousEventHandler("gmcp.Char.Afflictions.Add","gmcpAffAdd")


    A really simple example, you could expand it to handle Add, Remove and List together.

    Tharos, the Announcer of Delos shouts, "It's near the end of the egghunt and I still haven't figured out how to pronounce Clean-dat-hoo."
Sign In or Register to comment.