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

◆ EOnSimulate()

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

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

394 {
395 if (!IsProxy())
396 {
397 if (EngineIsOn())
398 {
399 vector mat[4];
400 dBodyGetWorldTransform(this, mat);
401 vector pos = mat[3] + VectorToParent(PropellerGetPosition());
402
403 if (g_Game.GetWaterDepth(pos) < -0.2)
404 EngineStop();
405 }
406 }
407 }
DayZGame g_Game
Определения DayZGame.c:4074
bool IsProxy()
Определения Hand_Events.c:65
proto native void EngineStop()
Stops the engine.
proto native bool EngineIsOn()
Returns true when engine is running, false otherwise.
proto native void dBodyGetWorldTransform(notnull IEntity body, out vector matrix[4])

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