I have my ball, whenever its effected by any type of weapon it doesn't move, bullets go through it.
[CODE]AddCSLuaFile()
ENT.Type = "anim"
ENT.Base = "base_gmodentity"
ENT.PrintName = "GBall"
ENT.Author = ""
ENT.Contact = ""
ENT.Purpose = ""
ENT.Instructions = ""
ENT.Spawnable = true
if SERVER then
function ENT:Initialize()
self:SetModel( "models/Combine_Helicopter/helicopter_bomb01.mdl" )
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self:SetModelScale( self:GetModelScale() * 2, 0 )
self:SetMaterial( "models/debug/debugwhite" )
local phys = self:GetPhysicsObject()
if (phys:IsValid()) then
phys:Wake()
end
self:Activate()
end
function ENT:Use( activator, caller )
return
end
function ENT:Think()
end
end
if CLIENT then
function ENT:Draw()
self:DrawModel()
end
end
hook.Add( "PreDrawHalos", "AddBallHalo", function()
halo.Add( ents.FindByClass( "gball" ), Color( 255,215,0 ), 5, 5, 2 )
end )[/CODE]
Apparently I can't hit it? (Other entities collide perfectly, just weapons)
maybe use Entity:SetCollisionGroup()???, [URL="http://wiki.garrysmod.com/page/Entity/SetCollisionGroup"]http://wiki.garrysmod.com/page/Entity/SetCollisionGroup[/URL]
[QUOTE=AbiSV;52607024]maybe use Entity:SetCollisionGroup()???, [URL="http://wiki.garrysmod.com/page/Entity/SetCollisionGroup"]http://wiki.garrysmod.com/page/Entity/SetCollisionGroup[/URL][/QUOTE]
Seems as you read the title, and tried to burn me for "acting" dumb.
You need to read before you post, legit. The entity already has collisions, settings its collisions again would be pointless?
I'm retarded, snip.
Sorry, you need to Log In to post a reply to this thread.