PhysicsInitSphere not working?

Hello,

I am trying to make a spheric forcefield but for weird reasons the physics seems to be a cube.
Maybe I misunderstood the PhysicsInitSphere? If you have any ideas to help me please tell me.



function ENT:Initialize()
	local FORCEFIELD_RADIUS = self.Entity:GetNW2Int("forcefieldSize", 256)
	self.Entity:SetMoveType(MOVETYPE_NONE)
	self.Entity:SetSolid(SOLID_VPHYSICS)
	self.Entity:PhysicsInitSphere(FORCEFIELD_RADIUS, "metal_bound")
	self.Entity:GetPhysicsObject():Wake()
	self.Entity:SetTrigger(true)
	self.Entity:SetNotSolid(true)
	self.Entity:SetCollisionBounds(Vector(-FORCEFIELD_RADIUS, -FORCEFIELD_RADIUS, -FORCEFIELD_RADIUS), Vector(FORCEFIELD_RADIUS, FORCEFIELD_RADIUS, FORCEFIELD_RADIUS))
end


I don’t recall a function called Entity:GetNW2Int? Isn’t it just GetNWInt()
That might be you’r problem.

No it’s not NW2 vars are experimental/non-documented functions. Plus in case those functions don’t exists I would get a console error and I don’t have any.