Originally Posted by
Blam
....
set_grip_info(b, BODYPARTS.L_HAND, math.random(0,2))
set_grip_info(b, BODYPARTS.R_HAND, math.random(0,2))
....
....
set_grip_info(b, BODYPARTS.L_HAND, math.random(0,1))
set_grip_info(b, BODYPARTS.R_HAND, math.random(0,1))
....
does make much more sense as there is only two states of hands: grabby/ungrabby
Also i advice to add
run_frames(20) or whatever here:
...
local function joint_random()
for b = 0,1 do
for k,v in pairs(JOINTS) do
set_joint_state(b, v, math.random(1,4))
end
set_grip_info(b, BODYPARTS.L_HAND, math.random(0,1))
set_grip_info(b, BODYPARTS.R_HAND, math.random(0,1))
run_frames(20)
end
end
....
For the guys who dont like pressing space