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

◆ SpawnAdditionalItems()

void SpawnAdditionalItems ( )
protected

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

2840 {
2841 GetInventory().CreateInInventory("Wrench");
2842 GetInventory().CreateInInventory("LugWrench");
2843 GetInventory().CreateInInventory("Screwdriver");
2844 GetInventory().CreateInInventory("EpoxyPutty");
2845
2846 GetInventory().CreateInInventory("CanisterGasoline");
2847
2848 EntityAI ent;
2849 ItemBase container;
2850 ent = GetInventory().CreateInInventory("CanisterGasoline");
2851 if (Class.CastTo(container, ent))
2852 {
2853 container.SetLiquidType(LIQUID_WATER, true);
2854 }
2855
2856 ent = GetInventory().CreateInInventory("Blowtorch");
2857 if (ent)
2858 {
2859 ent.GetInventory().CreateInInventory("LargeGasCanister");
2860 }
2861
2862 ent = GetInventory().CreateInInventory("Blowtorch");
2863 if (ent)
2864 {
2865 ent.GetInventory().CreateInInventory("LargeGasCanister");
2866 }
2867 }
Super root of all classes in Enforce script.
Определения EnScript.c:11
Определения Building.c:6
Определения InventoryItem.c:731
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
const int LIQUID_WATER
Определения constants.c:539

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

Используется в CarScript::OnDebugSpawn(), CivilianSedan::OnDebugSpawn(), Hatchback_02::OnDebugSpawn(), Sedan_02::OnDebugSpawn() и Truck_01_Covered::OnDebugSpawn().