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

◆ PairWithDevice()

bool PairWithDevice ( notnull ItemBase otherDevice)
protected

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

4779 {
4780 if (g_Game.IsServer())
4781 {
4782 ItemBase explosive = otherDevice;
4784 if (!trg)
4785 {
4786 trg = RemoteDetonatorTrigger.Cast(otherDevice);
4787 explosive = this;
4788 }
4789
4790 explosive.PairRemote(trg);
4791 trg.SetControlledDevice(explosive);
4792
4794 trg.SetPersistentPairID(persistentID);
4795 explosive.SetPersistentPairID(persistentID);
4796
4797 return true;
4798 }
4799 return false;
4800 }
DayZGame g_Game
Определения DayZGame.c:4074
void SetControlledDevice(EntityAI pDevice)
Определения RemoteDetonator.c:140

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

Используется в ClaymoreMine::OnDebugSpawn() и ClaymoreMine::OnPlacementComplete().