• ENT:Displays() Help me please.
    4 replies, posted
Hi, Can I use this feature? Because I'm not sure if it works with gmod13. [PHP]function ENT:Displays() self.BaseClass.Displays(self) end [/PHP] [PHP]self:Displays()[/PHP]
Never heard of this hook/method. What does it do?
It does not do anything
[QUOTE=hc_smrtka;39065399]It does not do anything[/QUOTE] Then what do you want it to do?, I don't quite get your problem.
Since the new version gmod [editline]2nd January 2013[/editline] I'm trying to fix old addon and I really do not know : D [editline]2nd January 2013[/editline] Do you want full code ? [editline]2nd January 2013[/editline] I make a new addon from the old one. But I use some of the features of the old one. [editline]2nd January 2013[/editline] [QUOTE]function ENT:Displays() Wire_TriggerOutput(self.Entity, "Shield", self.Shield.HP) Wire_TriggerOutput(self.Entity, "Armor", self.Armor.HP) Wire_TriggerOutput(self.Entity, "Hull", self.Hull.HP) Wire_TriggerOutput(self.Entity, "Capacitor", self.Cap.CAP) Wire_TriggerOutput(self.Entity, "Max Shield", self.Shield.Max) Wire_TriggerOutput(self.Entity, "Max Armor", self.Armor.Max) Wire_TriggerOutput(self.Entity, "Max Hull", self.Hull.Max) Wire_TriggerOutput(self.Entity, "Max Capacitor", self.Cap.Max) Wire_TriggerOutput(self.Entity, "% Shield", math.Round(self.Shield.Percent*10000)/100) Wire_TriggerOutput(self.Entity, "% Armor", math.Round(self.Armor.Percent*10000)/100) Wire_TriggerOutput(self.Entity, "% Hull", math.Round(self.Hull.Percent*10000)/100) Wire_TriggerOutput(self.Entity, "% Capacitor", math.Round(self.Cap.Percent*10000)/100) end[/QUOTE]
Sorry, you need to Log In to post a reply to this thread.