Skip to content

Instantly share code, notes, and snippets.

@MattJeanes
Created February 17, 2014 00:41
Show Gist options
  • Save MattJeanes/9042778 to your computer and use it in GitHub Desktop.
Save MattJeanes/9042778 to your computer and use it in GitHub Desktop.
This tests poseparameters (specifically ones called "switch" but can be modified in the code). To use simply aim at entity and run code.
local e,n e=player.GetAll()[1]:GetEyeTraceNoCursor().Entity n=0 hook.Add("Think", "test", function() n=n+0.01 if n>=1 then n=0 end e:SetPoseParameter("switch", n) end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment