jacob2:
autorun.lua
I recommend getting the script manager. Instructions are on the thread for that. You type a console command to install it.
With the script manager, you just put it in scripts/ and then you can enable / disable it at will
jacob2:
@Videogamer555 (View Post)
It definitely should not have stayed, btw :p
Benefits a few handful of users and causes problems for many others who accidentally recorded for a very long time and filled up their disk
IsRecording=false
FirstFrameCaptured=false
function KeyPress(key,nkey,modifier,event)
if key=="r" then
if event==1 then
if modifier==256 then
if IsRecording==false then
if tpt.record(true)~=0 then
FirstFrameCaptured=false
IsRecording=true
end
else
tpt.record(false)
IsRecording=false
end
end
end
end
return true
end
function FrameFunc()
if IsRecording==true then
if FirstFrameCaptured==false then
FirstFrameCaptured=true
tpt.set_pause(0)
end
end
end
tpt.register_step(FrameFunc)
tpt.register_keypress(KeyPress)
IsRecording=false
FirstFrameCaptured=false
function KeyPress(key, scan, rep, shift, ctrl, alt)
if key == 114 and ctrl and not rep then
if IsRecording==false then
if tpt.record(true)~=0 then
FirstFrameCaptured=false
IsRecording=true
end
else
tpt.record(false)
IsRecording=false
end
end
return true
end
function FrameFunc()
if IsRecording==true then
if FirstFrameCaptured==false then
FirstFrameCaptured=true
tpt.set_pause(0)
end
end
end
event.register(event.tick, FrameFunc)
event.register(event.keypress, KeyPress)