I would need to know how to retrieve players' basic data when they join a server.
I'm using the modifyLogin function of Mutator class.
By using playerName = Level.Game.ParseOption(Options, "Name") it's possible to retrieve the name of the players who connect to a server but I cannot find a method that can be used to know if those player are "real players" or spectators. Any ideas ?
thanks in advance,
Pietro
I started from this code:
Code: Select all
class ClassName extends Mutator config(configfile);
function preBeginPlay() {
...
}
function modifyLogin(out class<playerpawn> spawnClass, out string portal, out string options) {
local string playerName;
if (nextMutator != none) {
nextMutator.modifyLogin(spawnClass, portal, options);
}
// get player name
playerName = Level.Game.ParseOption(Options, "Name");
}