
it worked like a charm, thanks a million.



BTW, i still can't find anything like that in the archives. I think it is done but it is nowhere near as straight forward.
var string server_name; replication { reliable if (Role == ROLE_Authority) server_name; } function string GetServerName() { return Level.Game.GameReplicationInfo.ServerName; } function PostBeginPlay() { server_name = GetServerName(); }
simulated function PostNetBeginPlay() { //here use server_name for whatever you wish, like: class'MyWeapon'.default.ItemName = server_name $ " super gun"; }
function string GetServerName(string ServNam) { ServNam = Level.Game.GameReplicationInfo.ServerName; return ServNam; }
SN=class'GameReplicationInfo'.default.ServerName; //this just grabs the local ServerName instead of the server ServerName
SN=GameReplicationInfo.ServerName;
var GameInfo.ServerResponseLine Server; ~ ~ ~ SN=Server.ServerName;
Leave a comment: