Making rope from one entity to a nother, or just a Vector?
2 replies, posted
Does anyone know how, i find the tutorials on the internet wird, and little hard. I basicly want to make a for k, v in pairs function and then look for a entity in the range of 100 ect.
Then i wat to make a rope from the current entity, and to the other one. Can someone give an exampel? Thanks! :D
I would like to do someshort of this, but i don't really know how, to make the rope connectiont eachothers.
[lua]
function ENT:Think()
for _, ent in pairs(ents.FindInSphere(self:GetPos(), 100) do
if ent:GetClass() == "sent_ball" then
end
end
end
[/lua]
This function should help you out..
[url]http://wiki.garrysmod.com/page/constraint/Rope[/url]
[QUOTE=Jeezy;44103502]This function should help you out..
[url]http://wiki.garrysmod.com/page/constraint/Rope[/url][/QUOTE]
Yep, just what i was looking fore, thx man :)
Sorry, you need to Log In to post a reply to this thread.