Hello, I want to make something like a gun model on players back. I wonder, what's the best way to do it? I could use [b][url=http://wiki.garrysmod.com/?title=Entity.GetBonePosition]Entity.GetBonePosition [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] and set attached weapons ang and pos each frame, but maybe there is a better way, to make engine to do it itself?
Go with setting the position and angle each frame.
Even if there's an engine function for it I bet it'll do essentially the same thing.
[QUOTE=ralle105;25935432]Go with setting the position and angle each frame.
Even if there's an engine function for it I bet it'll do essentially the same thing.[/QUOTE]
Alright, thanks.
/thread
Correct me if i'm wrong but wouldn't it be better to parent the model to the player so you don't have to update it's position every frame?
[QUOTE=blackbird301;25957105]Correct me if i'm wrong but wouldn't it be better to parent the model to the player so you don't have to update it's position every frame?[/QUOTE]
That would work but I dont think that would update the angle correctly. IIRC, Parenting only changes position.
[QUOTE=blackbird301;25957105]Correct me if i'm wrong but wouldn't it be better to parent the model to the player so you don't have to update it's position every frame?[/QUOTE]
[QUOTE=ralle105;25935432]Even if there's an engine function for it I bet it'll do essentially the same thing.[/QUOTE]
Parenting does the same only it does the math for you.
Sorry, you need to Log In to post a reply to this thread.