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)
Basically an event triggered when a player switch teams.
(I think this even already exist in openmohaa. Not sure if it really works tho)
with
local.oldteamandlocal.newteamreturning the same possible values aslocal.player.dmteamallies,axis,spectatororfreeforall(no idea if freeforall even works, never seen it returning that)