function i2h takes integer i returns unit fh1 = ConvertFogState(i) SaveFogStateHandle(ht1, 0, 0, fh1) return LoadUnitHandle(ht1, 0, 0) endfunction