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

◆ OnQuery()

override bool EntityPlacementCallback::OnQuery ( Object other)
inlineprivate

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

114 {
115 if (other.IsScenery())
116 {
117 return false;
118 }
119
120 if (other.IsMan())
121 {
122 return false;
123 }
124
125 EntityAI entity;
126 if (Class.CastTo(entity, other))
127 {
128 if (entity.IsAnimal() || entity.IsZombie())
129 {
130 return false;
131 }
132 }
133
134 if (other.GetCollisionRadius() < 0.05)
135 {
136 return false;
137 }
138
139 return true;
140 }
class LogManager EntityAI

Перекрестные ссылки Class::CastTo().