Getting the mass of the entity( attempt to call method 'GetMass' (a nil value) )
1 replies, posted
Hello everyone.
So I am basically doing this:
local targetEnt = ply:GetEyeTrace().Entity
if( targetEnt:GetMass() >= 150 ) then print( "woah" ) end
And I am getting this error:
attempt to call method 'GetMass' (a nil value)
Using the 'GetMass' function might not be the best approach, but I could not find any other method of doing this. If you know one, please let me know.
GetMass() is a function of PhysObj, not Entity.
Sorry, you need to Log In to post a reply to this thread.