Created
February 17, 2014 00:41
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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