• Can someone help i have a question
    11 replies, posted
Can you change the properties of a entity so it can be used with a gravity gun ? and if so how can i do this?
Okay, used in what way? The only way I could think of using the gravity gun on things is pulling them and shooting them away
For dark rp so it can be picked up via a grav gun
Cant you usually do that? I barely play DarkRP anymore soo
you can gravity gun entity but only some that dont have the restriction
i dont really know the restictions, but i would expect its size/weight. I for sure cant gravity gun grab huuuge things
Yeah you can change it via changing the weight but i dont know how to do that so.
ENTITY/GravGunPickupAllowed this would be your best try, but i've had really iffy functionality with it
Thanks i have frigged it out its pretty simple but thanks for anyone that tried to help
...okay, and how did you do it? You usually show the solution here, so a person with the same problem can see this (and doesnt have to create yet ANOTHER thrad..)
Soulution   local phys = self:GetPhysicsObject() if (phys:IsValid()) then phys:Wake() self.Angles = self:GetAngles() phys:SetMass( 20 ) -- set number Msg(phys:GetMass( )) end
The way the physics gun works is like that if the weight aka mass of the prop is less then some value, you can pull and push it, so setting the props mass to 20 or so would work
Sorry, you need to Log In to post a reply to this thread.