• Gmod Use To Move
    4 replies, posted
So I'm looking for some help on this, say I want to grab a prop and I want it to follow me, how would I do this? I've been told I should use GM:KeyPress and GM:Move I have no idea what I would do with GM:Move though... Sorry if this sounds stupid but I really am at a loss. Thanks for any help! ^_^
To get it done roughly and easily, if you want this to work I'd use the KeyPress and check if their looking at a prop_physics entity. If so, then add it to a table of props to "follow" you (The table can be stored on the Player's player object). In a think hook, go through all these props in that table and set their position relative to the players. If you want some basic source code ask and I'll whip something up. I assume by follow you mean just hover behind/above. [editline]13th August 2011[/editline] Better yet, you could always just parent the entity to your player object if you "press e" on it.
Well I'm looking into if you were to grab a ragdoll by the hand or something the hand would follow after you, a quick script would be greatly appreciated. =P
Okay so dragging ragdolls by their specific bones. I'll get working on something like that in a bit :) (I need something like it in my own gamemode anyways)
Haha alright thankya.
Sorry, you need to Log In to post a reply to this thread.