ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "" ENT.Author = "" ENT.Contact = "" ENT.Purpose = "" ENT.Instructions = "" // Set the key function ENT:SetEntityKey(Key) self.Entity:SetVar("Numpad", Key) end // Get the key function ENT:GetEntityKey() return self.Entity:GetVar("Numpad") end // Set length function ENT:SetEntityLength(Len) self.Entity:SetNetworkedInt("Length", Len) end // Get length function ENT:GetEntityLength() return self.Entity:GetNetworkedInt("Length") end // Set force function ENT:SetEntityForce(Force) self.Entity:SetNetworkedInt("Force", Force) end // Get force function ENT:GetEntityForce() return self.Entity:GetNetworkedInt("Force") end // Set effect function ENT:SetEntityEffect(Effect) self.Entity:SetNetworkedInt("Effect", Effect) end // Get effect function ENT:GetEntityEffect() return self.Entity:GetNetworkedInt("Effect") end // Set button on function ENT:SetEntityPressing(Bool) self.Entity:SetNetworkedBool("Pressing", Bool) end // Check if it's on function ENT:IsEntityPressing() return self.Entity:GetNetworkedBool("Pressing") end // Set label function ENT:SetEntityLabel(Text) local Label = "" if (Text != "") then Label = "\nLabel: "..Text end local Force = "\nForce: "..self:GetEntityForce() local Len = "\nLength: "..self:GetEntityLength() local Status = "(ON)" if not (self:IsEntityPressing()) then Status = "(OFF)" end Text = "Fan "..Status..Len..Force..Label self:SetOverlayText(Text) end