Unrecognized member 'name' in class 'PlayerPawn'
Posted: Sat Jun 25, 2022 12:17 pm
I try to set the tag of an Actor to the name of another actor that is global defined, but compiling fails if I do that directly:
![No Idea :noidea](./images/smilies/keinPlan.gif)
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;
}
![No Idea :noidea](./images/smilies/keinPlan.gif)