?_t == 0 : _t = _time + vdelay
?_t > _time : goto "alive"
vdelay should be _vdelay, if you haven't defined the vdelay somewhere as a global variable.
Because vdelay doesn't exist _t will be zero and the line
?_t > _time : goto "alive"
will never be true, so it continues stright to:
#notalive
~_delay
deleteVehicle _obj
~1
_obj = _vehicle select _type createVehicle _pos
_obj setDir _dir
goto "init"
It waits _delay (supposed to be _vdelay
), deletes the vehicle and creates a new one in _pos.
I think fixing those will do the trick. ;D