Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:FireAltarAbility

From RoR Wiki

UI Lua API · RvR functions
Version: WAR 1.4.8

Asks the server to activate the ability of the altar the player is interacting with.

FireAltarAbility()

Arguments

None.

Returns

Nothing.

Details

  • The request is sent as an interaction with the object the player last interacted with. Nothing is sent if there is no such object or if the network connection is not ready.
  • The client does not check cooldowns or permissions; the stock altar window does that before calling (EA_Window_InteractionAltar.CanActivate).
  • Arguments are not read.

Errors

None.

Example

From default/ea_interactionwindow/source/interactionaltar.lua:

function EA_Window_InteractionAltar.OnActivate()
    if ( EA_Window_InteractionAltar.CanActivate() ) then
        FireAltarAbility()
    end
end

See also