Code: Select all
class WhatEver extends Info;
var PlayerPawn Player;
function SetTagToName() {
// sets the TAG to the name of this object
local Actor A;
// Tag = Player.name; <- does not compile: ": Error, Unrecognized member 'name' in class 'PlayerPawn'"
// but this does compile:
A = Player;
Tag = A.name;
}
