Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:LeaveScenarioGroup

From RoR Wiki
Revision as of 19:46, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · Scenario functions
Version: WAR 1.4.8

Asks the server to remove the player from their scenario group.

LeaveScenarioGroup()

Arguments

None.

Returns

Nothing.

Details

  • Nothing is sent if there is no player object, or if the player is neither in a scenario (GameData.Player.isInScenario) nor in a city siege (GameData.Player.isInSiege).
  • Arguments are not read.

Errors

None.

Example

From default/ea_scenariogroupwindow/source/scenariogroupwindow.lua:

function ScenarioGroupWindow.LeaveGroup()
    LeaveScenarioGroup()
    ScenarioGroupWindow.GroupJoined = 0
    ScenarioGroupWindow.HideLeaveGroupElements()
end

See also