_timeleft = _this select 0
_caption = _this select 1
_location = _this select 2
_script = _this select 3
_vektor = _this select 4

#Update
; Wait 1 second
~1

; Decrease the timer
_timeleft = _timeleft - 1

; Check weather the time is 0
? _timeleft == 0 : goto "Done"

; Show the time left
titletext [format [_caption + " %1",_timeleft], _location]
goto "Update"

#Done
; Execute the script with arguments
_vektor exec _script
exit