31
AA Support / New admin command ASS
« on: Thursday, January 29, 2015, 13:25:39 PM »
Nothing extra need to be loaded in the ini, all an admin has to do is to type
Function will be available tomorrows file update I have planned.
I found inspiration for the new function here:
http://aao25.com/forum/games-programming/team-swap/
Code: [Select]
ass
in the console, and all players will swap teams.Code: [Select]
final exec function ass()
{
local PlayerReplicationInfo PRI;
if (ViewportOwner !=None)
{
if (myLevel !=None)
{
ForEach myLevel.AllActors(Class'PlayerReplicationInfo',PRI)
{
if (! PRI.bIsSpectator || PRI.bWaitingPlayer)
{
log(ViewportOwner.Actor.ConsoleCommand("admin A_SwitchTeam" @ PRI.PlayerName));
}
}
}
}
}
Function will be available tomorrows file update I have planned.
I found inspiration for the new function here:
http://aao25.com/forum/games-programming/team-swap/