Something like this:
i have received so many free models and scripts and help from users here on the forum,
So my turn to give back, nothing fancy but it do the job.
hope you can use it
-- Script BY Pcs
start_speed = 50
animation_control = 1
function animation_control_init(e)
SetAnimationSpeed(e,0)
end
function animation_control_main(e)
if animation_control == 1 then
Prompt("press E to start animation" )
if GetInKey() == "e" or GetInKey() == "E" then
SetAnimationSpeed(e,start_speed)
animation_control = 2
end
end
if animation_control == 2 then
Prompt("press R to stop animation or T to speed or Y to speed down" )
if GetInKey() == "r" or GetInKey() == "R" then
SetAnimationSpeed(e,0)
animation_control = 1
end
if GetInKey() == "t" or GetInKey() == "T" then
start_speed = start_speed + 0.1
SetAnimationSpeed(e,start_speed)
end
if GetInKey() == "y" or GetInKey() == "Y" then
start_speed = start_speed - 0.1
SetAnimationSpeed(e,start_speed)
end
end
end
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11