Hello, I want to create a mutator that modifies ROObjTerritory.
Can someone tell me how I can replace ROObjTerritory with my class?
I tried CheckReplacement, but the result was not what I expected (my class seemed not to be loaded).
Can someone tell me how I can replace ROObjTerritory with my class?
I tried CheckReplacement, but the result was not what I expected (my class seemed not to be loaded).
Code:
function bool CheckReplacement(Actor Other,out byte bSuperRelevant)
{
if (ROObjTerritory(Other) != None)
{
ReplaceWith(Other,"XYZ.maROObjTerritory");
return false;
}
else
return true;
}