Does anyone know how to weapon sway when idle? Like in FA:S weapons. I would like to learn how to translate and rotate velements etc.
Check out this hook:
[url]http://wiki.garrysmod.com/page/WEAPON/GetViewModelPosition[/url]
You may also want to check out the other weapon hooks too.
[QUOTE=Jeezy;44936386]Check out this hook:
[url]http://wiki.garrysmod.com/page/WEAPON/GetViewModelPosition[/url]
You may also want to check out the other weapon hooks too.[/QUOTE]
Thanks for that. Now how do I like translate and rotate?
It says on the page, you return your desired position and angles.
Within your swep...
[lua]
function SWEP:GetViewModelPosition( pos, ang )
return Vector( 0, 0, 0 ), Angle( 0, 0, 0 )
end
[/lua]
Sorry, you need to Log In to post a reply to this thread.