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

◆ OnActivatedByItem()

override void RemoteDetonatorTrigger::OnActivatedByItem ( notnull ItemBase item)
inlineprotected

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

126 {
127 if (g_Game.IsServer())
128 {
129 if (m_RAIB.IsPaired() && !IsRuined())
130 {
131 ItemBase device = ItemBase.Cast(GetControlledDevice());
132 if (device && vector.DistanceSq(GetPosition(), device.GetPosition()) <= Math.SqrFloat(UAMaxDistances.EXPLOSIVE_REMOTE_ACTIVATION))
133 {
134 device.OnActivatedByItem(this);
135 }
136 }
137 }
138 }
DayZGame g_Game
Определения DayZGame.c:3942
class GP5GasMask extends MaskBase ItemBase
EntityAI GetControlledDevice()
Определения RemoteDetonator.c:150
ref RemotelyActivatedItemBehaviour m_RAIB
Определения RemoteDetonator.c:51
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

Перекрестные ссылки vector::DistanceSq(), UAMaxDistances::EXPLOSIVE_REMOTE_ACTIVATION, g_Game, GetControlledDevice(), GetPosition(), m_RAIB и Math::SqrFloat().