I need some help with entities.
I am trying to create an entitiy with the new update.
ENT.Type = “anim”
ENT.Base = “base_gmodentity”
ENT.PrintName = “Juggernaut Suit”
ENT.Author = “FuriousJack95”
ENT.Contact = “FacePunch: tazy4tazy”
ENT.Purpose = “Putting on a suit and owning everyone.”
ENT.Instructions = “Put on, own noobs.”
if CLIENT then
function ENT:Draw() self:DrawModel() end
if SERVER then
function ENT:Initialize() self:SetModel( "models/props_interiors/BathTub01a.mdl" ) -- Forget this. self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) local phys = self:GetPhysicsObject() if (phys:IsValid()) then phys:Wake() end end function ENT:Use( activator, caller ) activator:JuggernautEquip() self:Remove() end function ENT:Think() end
No entities show in the list where the magnussian device is, also, There isn’t a bouncy ball any more D:
I use gm_spawnsent juggernaut_suit and it doesnt throw an error, it just doesn’t spawn it.
OFFTOPIC: Does anyone have a visor material? I cant find one anywhere. like from MW3.
EDIT: I fixed it, I had to use gm_spawnsent.