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

◆ AvoidPlayer()

proto native bool AvoidPlayer ( vector vPos,
float fDistance )
private

Check if there is a player within a radius.

Аргументы
vPosvector The center point
fDistancefloat The radius around the center point
Возвращает
bool Returns false when there is a player inside supplied area, true when it successfully avoided players
GetCEApi().AvoidPlayer(Vector(500, 0, 500), 20);
proto native CEApi GetCEApi()
Get the CE API.
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

Используется в BoatScript::DecayHealthTick().