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

◆ IsPlaceable()

bool IsPlaceable ( )
protected

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

182 {
183 if ( GetHierarchyRootPlayer() != null && GetHierarchyRootPlayer().GetEntityInHands() == this )
184 {
185 PlayerBase player = PlayerBase.Cast( GetHierarchyRootPlayer() );
186
187 vector player_pos = player.GetPosition();
188 vector aim_pos = player.GetAimPosition();
189
190 if ( vector.DistanceSq( player_pos, aim_pos ) <= ( Math.SqrFloat( 1.5 ) ) )
191 {
192 return IsPlaceableAtPosition( aim_pos );
193 }
194 }
195
196 return false;
197 }
bool IsPlaceableAtPosition(vector position)
Определения TrapBase.c:199
Определения EnMath.c:7
Определения PlayerBaseClient.c:2
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
Определения EnConvert.c:119
static proto float SqrFloat(float f)
Returns squared value.

Перекрестные ссылки vector::DistanceSq(), IsPlaceableAtPosition() и Math::SqrFloat().