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

◆ EOnSimulate()

override void BoatScript::EOnSimulate ( IEntity other,
float dt )
inlineprotected

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

386 {
387 if (!IsProxy())
388 {
389 if (EngineIsOn())
390 {
391 vector mat[4];
392 dBodyGetWorldTransform(this, mat);
393 vector pos = mat[3] + VectorToParent(PropellerGetPosition());
394
395 if (GetGame().GetWaterDepth(pos) < -0.2)
396 EngineStop();
397 }
398 }
399 }
bool IsProxy()
Определения Hand_Events.c:65
proto native CGame GetGame()
proto native void dBodyGetWorldTransform(notnull IEntity body, out vector matrix[4])

Перекрестные ссылки dBodyGetWorldTransform(), GetGame() и IsProxy().