• constraint.Rope problem!
    4 replies, posted
Okay, I have this code! [LUA]constraint.Rope( veh, ents.GetAll()[1015], 0, 0, veh:GetPos(), ents.GetAll()[1015]:GetPos(), 5, 0, 0, 20, "cable/cable2", true )[/LUA] You can see that I use ents.GetAll() [B]It's just for testing! And i have made 100% sure it's that prop I wanna effect.[/B] The cable is invisible for some reason...
bump
You can just do [CODE]Entity(1015)[/CODE]... anyway, what IS entity 1015? And, what is veh? You may be selecting the wrong entity
[QUOTE=MPan1;51625967]You can just do [CODE]Entity(1015)[/CODE]... anyway, what IS entity 1015? And, what is veh? You may be selecting the wrong entity[/QUOTE] Okay. Veh is something i've called with the :GetVehicle() and entity1015 is just a lamp prop i've selected. it's because i want to make a rope between a car and a lamp. :pudge:
The positions are local to the entity. So if you want them at ent:GetPos(), you would pass in Vector(0, 0, 0) or vector_origin instead.
Sorry, you need to Log In to post a reply to this thread.