I need some help with entities.
I am trying to create an entitiy with the new update.
using juggernaut_suit.lua
[lua]
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
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
end
[/lua]
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.
Sorry, you need to Log In to post a reply to this thread.