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

◆ OnDebugSpawn() [7/7]

override void CarScript::OnDebugSpawn ( )
inlineprotected

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

289 {
290 EntityAI entity;
291
292 if ( Class.CastTo(entity, this) )
293 {
294 GameInventory inventory = entity.GetInventory();
295 inventory.CreateInInventory( "Truck_02_Wheel" );
296 inventory.CreateInInventory( "Truck_02_Wheel" );
297 inventory.CreateInInventory( "Truck_02_Wheel" );
298 inventory.CreateInInventory( "Truck_02_Wheel" );
299
300 inventory.CreateInInventory( "TruckBattery" );
301 inventory.CreateInInventory( "SparkPlug" );
302
303 inventory.CreateInInventory( "Truck_02_Door_1_1" );
304 inventory.CreateInInventory( "Truck_02_Door_2_1" );
305
306 inventory.CreateInInventory( "HeadlightH7" );
307 inventory.CreateInInventory( "HeadlightH7" );
308 }
309
310 Fill( CarFluid.FUEL, 50 );
311 Fill( CarFluid.OIL, 4.0 );
312 };
class LogManager EntityAI
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
Определения Car.c:19
EntityAI CreateInInventory(string type)
creates entity somewhere in inventory

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