DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
IrrigationTunnel_Entrance.c
См. документацию.
2{
3 override void OnDebugSpawn()
4 {
5 GameInventory inventory = GetInventory();
6 ItemBase item;
7 if (Class.CastTo(item, inventory.CreateInInventory("WoodenStick")))
8 item.SetQuantityMax();
9 if (Class.CastTo(item, inventory.CreateInInventory("Rope")))
10 item.SetQuantityMax();
11 }
12};
Определения FuelStation.c:2
Super root of all classes in Enforce script.
Определения EnScript.c:11
EntityAI CreateInInventory(string type)
creates entity somewhere in inventory
script counterpart to engine's class Inventory
override void OnDebugSpawn()
Определения IrrigationTunnel_Entrance.c:3
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.