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

◆ OnDebugSpawn()

override void CarScript::OnDebugSpawn ( )
inlineprotected

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

301 {
302 EntityAI entity;
303
304 if ( Class.CastTo(entity, this) )
305 {
306 GameInventory inventory = entity.GetInventory();
307 inventory.CreateInInventory( "Truck_02_Wheel" );
308 inventory.CreateInInventory( "Truck_02_Wheel" );
309 inventory.CreateInInventory( "Truck_02_Wheel" );
310 inventory.CreateInInventory( "Truck_02_Wheel" );
311
312 inventory.CreateInInventory( "TruckBattery" );
313 inventory.CreateInInventory( "SparkPlug" );
314
315 inventory.CreateInInventory( "Truck_02_Door_1_1" );
316 inventory.CreateInInventory( "Truck_02_Door_2_1" );
317
318 inventory.CreateInInventory( "HeadlightH7" );
319 inventory.CreateInInventory( "HeadlightH7" );
320 }
321
322 Fill( CarFluid.FUEL, 50 );
323 Fill( CarFluid.OIL, 4.0 );
324 };
class LogManager EntityAI
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
Определения Car.c:18
proto native void Fill(MotorbikeFluid fluid, float amount)
Adds to the specified fluid the specified amount.
EntityAI CreateInInventory(string type)
creates entity somewhere in inventory

Перекрестные ссылки Class::CastTo(), GameInventory::CreateInInventory() и Fill().