5 protected int m_PairDeviceNetIdLow;
6 protected int m_PairDeviceNetIdHigh;
11 m_PairDeviceNetIdLow = -1;
12 m_PairDeviceNetIdHigh = -1;
15 void OnVariableSynchronized()
22 EntityAI device =
EntityAI.Cast(
GetGame().GetObjectByNetworkId(GetPairDeviceNetIdLow(), GetPairDeviceNetIdHigh()));
31 m_PairDevice = device;
32 SetPairDeviceNetIds(device);
36 m_PairDevice.PairRemote(m_Parent);
39 m_PairDevice.SetSynchDirty();
45 m_PairDeviceNetIdLow = -1;
46 m_PairDeviceNetIdHigh = -1;
50 m_PairDevice.SetSynchDirty();
64 return m_PairDevice !=
null;
67 void SetPairDeviceNetIds(notnull
EntityAI device)
69 device.GetNetworkID(m_PairDeviceNetIdLow, m_PairDeviceNetIdHigh);
72 int GetPairDeviceNetIdLow()
74 return m_PairDeviceNetIdLow;
77 int GetPairDeviceNetIdHigh()
79 return m_PairDeviceNetIdHigh;