_obj = _this

#1
_pl = GeneratePlate
_obj setPlateNumber _pl
?(player distance _obj) < 10: showdebug [format ["DEBUG (showDebug [String, Time (ms)]) 'GeneratePlate': %1 | 'GetMass': %2", _pl, getmass _obj], 6000]
?!(isnull (nearestobjectdistance [_obj, "camera", 10])): showdebug [format ["DEBUG (showDebug [String, Time (ms)]) 'GeneratePlate': %1 | 'GetMass': %2", _pl, getmass _obj], 6000]
~1
goto "1"