Skip to content

[Feature Request] changeteam event #51

@eduzappa18

Description

@eduzappa18

Basically an event triggered when a player switch teams.
(I think this even already exist in openmohaa. Not sure if it really works tho)

local.result = registerev "changeteam" path/to/script.scr::changeteam


// edit: maybe having local.newteam as second parameter and local.oldteam at last would make more sense, idk
changeteam local.player local.oldteam local.newteam:

end

with local.oldteam and local.newteam returning the same possible values as local.player.dmteam
allies, axis, spectator or freeforall (no idea if freeforall even works, never seen it returning that)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions