• My entity wont show up...
    2 replies, posted
I've tried and tried but it's still not working. So i'd hoped that someone out there could help me! My cl_init.lua include("shared.lua") function ENT:Draw() self:DrawModel() end My shared.lua ENT.Type = "anim" ENT.PrintName = "Test" ENT.Author = "N/A" ENT.Spawnable = true My init.lua AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function Initialize() self:SetModel("models/props_borealis/bluebarrel001.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType(SIMPLE_USE) self:DrawShadow(false) end function ENT:Touch(ent) if ent:IsPlayer() then local effectdata = EffectData() effectdata:SetOrigin(self:GetPos()) effectdata:SetScale(1) util.Effect("Explosion",effectdata) end end
function Initialize() isn't linked with SENT
Oh Thanks @Spar !
Sorry, you need to Log In to post a reply to this thread.