DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ EEOnCECreate()

override void EEOnCECreate ( )
protected

См. определение в файле MotorbikeScript.c строка 440

441 {
442
443 float maxVolume = GetFluidCapacity( MotorbikeFluid.FUEL );
444 float amount = Math.RandomFloat(0.0, maxVolume * 0.35 );
445
446 Fill( MotorbikeFluid.FUEL, amount );
447 }
MotorbikeFluid
Type of vehicle's fluid. (native, do not change or extend)
Определения Motorbike.c:14
proto native void Fill(MotorbikeFluid fluid, float amount)
Adds to the specified fluid the specified amount.
proto native float GetFluidCapacity(MotorbikeFluid fluid)
Определения EnMath.c:7
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].

Перекрестные ссылки Fill(), GetFluidCapacity() и Math::RandomFloat().