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

◆ PairWithDevice()

bool InventoryItem::PairWithDevice ( notnull ItemBase otherDevice)
inlineprotected

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

4690 {
4691 if (GetGame().IsServer())
4692 {
4693 ItemBase explosive = otherDevice;
4695 if (!trg)
4696 {
4697 trg = RemoteDetonatorTrigger.Cast(otherDevice);
4698 explosive = this;
4699 }
4700
4701 explosive.PairRemote(trg);
4702 trg.SetControlledDevice(explosive);
4703
4704 int persistentID = RemotelyActivatedItemBehaviour.GeneratePersistentID();
4705 trg.SetPersistentPairID(persistentID);
4706 explosive.SetPersistentPairID(persistentID);
4707
4708 return true;
4709 }
4710 return false;
4711 }
void RemoteDetonatorTrigger()
Определения RemoteDetonator.c:233
void ItemBase()
Определения ItemBase.c:140
void SetControlledDevice(EntityAI pDevice)
Определения RemoteDetonator.c:140
proto native CGame GetGame()

Перекрестные ссылки RemotelyActivatedItemBehaviour::GeneratePersistentID(), GetGame(), ItemBase() и RemoteDetonatorTrigger::SetControlledDevice().