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

◆ GetVelocity()

proto native vector GetVelocity ( notnull IEntity ent)

Returns linear velocity.

Аргументы
entIEntity entity which origin will be set
matvector[4] matrix to be set
Возвращает
vector linear velocity
Man player = g_Game.GetPlayer();
Print( GetVelocity(player) );
>> <0,0,0>
DayZGame g_Game
Определения DayZGame.c:3868
proto void Print(void var)
Prints content of variable to console/log.
proto native vector GetVelocity(notnull IEntity ent)
Returns linear velocity.

Используется в CheckContactCache(), BoatScript::EOnContact(), BoatScript::EOnPostSimulate(), EOnPostSimulate(), EntityAI::GetMomentum(), BoatHud::GetSpeedometer(), DayZCreature::ModCommandHandlerBefore(), OnContact(), OnUpdate(), Entity::RegisterTransportHit() и ThrowAllItemsInInventory().