Hello guys!
I want to edit the sent_ball model entity, in garry's mod by default
I want to set a new model, but i can't
i just want to know, how can i make an entity
To spawn this model
models/supersport/basketball.mdl
And make it super_bouncy
I tried this:
[lua]
concommand.Add("spawn_ball",function( ply )
local ent = ents.Create( "test" )
if ent:IsValid() and ply:IsSuperAdmin() then
ent:SetModel( "models/supersport/basketball.mdl" )
self:PhysicsInitSphere( 5, "super_bouncy" )
ent:Spawn()
print("Ball spawn!")
end
end)
[/lua]
Sorry, you need to Log In to post a reply to this thread.