• update collisionbounds?
    1 replies, posted
hi i was wondering if it were possible to have my ent get bigger each time it hits something. i want to scale the model and its collision, any way of doing this? :P this is what im working with o_o [lua] function ENT:PhysicsCollide( Data, PhysObj ) if ( !self.Occupied || !ValidEntity( self.Occupant ) ) then return end if ( ValidEntity( Data.HitEntity ) ) then Data.HitEntity:SetNotSolid(true) Data.HitEntity:SetParent(self) inc = inc + .05 cni = cni - .05 self.Entity:SetCollisionBounds( Vector( cni, cni, cni ), Vector( inc, inc, inc ) ) end end [/lua]
Sorry, but it isn't possible to scale a collision model. We all wish it were.
Sorry, you need to Log In to post a reply to this thread.