Code: Select all
var int countpickuptimes
static function string GetLocalString(
optional int iMessage,
optional PlayerReplicationInfo RelatedPRI_1,
optional PlayerReplicationInfo RelatedPRI_2
) {
switch (iMessage) {
case 0:
return "You cant heal past your normal health limit with Health PowerUps.";
case 1:
return DynamicMessage;
}
return Super.GetLocalString(iMessage, RelatedPRI_1, RelatedPRI_2);
}
defaultproperties
{
DynamicMessage="You have picked up this item" $countpickuptimes $"."
}
Error, You can only access default values of variables here
Im not following what on earth is going on here, is there a simple way to overcome this? whats causing this such extreme issue that it wont let me access variables outside that function?
Best Regards!