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

◆ PairWithDevice()

bool InventoryItem::PairWithDevice ( notnull ItemBase otherDevice)
inlineprotected

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

4762 {
4763 if (GetGame().IsServer())
4764 {
4765 ItemBase explosive = otherDevice;
4767 if (!trg)
4768 {
4769 trg = RemoteDetonatorTrigger.Cast(otherDevice);
4770 explosive = this;
4771 }
4772
4773 explosive.PairRemote(trg);
4774 trg.SetControlledDevice(explosive);
4775
4776 int persistentID = RemotelyActivatedItemBehaviour.GeneratePersistentID();
4777 trg.SetPersistentPairID(persistentID);
4778 explosive.SetPersistentPairID(persistentID);
4779
4780 return true;
4781 }
4782 return false;
4783 }
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().