Allow to disable changing targetname of entity in Initialize() to self.PrintName
URAKOLOUY5 opened this issue · comments
Den Urakolouy commented
I'm making somekind of support for my SNPCS for scripted_sequence entity and think this is will be better if there was a self.OverrideTargetName
condition for this line in base npcs:
self:SetName((self.PrintName == "" and list.Get("NPC")[self:GetClass()].Name) or self.PrintName)
so:
if self.OverrideTargetName then
self:SetName((self.PrintName == "" and list.Get("NPC")[self:GetClass()].Name) or self.PrintName)
end
I know I can revert name back to K/V of targetname, but this idea is better.