DayZ 1.30
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:4074
proto void Print(void var)
Prints content of variable to console/log.
proto native vector GetVelocity(notnull IEntity ent)
Returns linear velocity.

Используется в Car::CheckContactCache(), CheckContactCache(), Car::EOnPostFrame(), EOnPostFrame(), BoatScript::EOnPostSimulate(), Car::EOnPostSimulate(), EOnPostSimulate(), map< int, float >::GetMomentum(), BoatHud::GetSpeedometer(), GetSpeedometer(), Transport::GetSpeedometer(), Weapon::LiftWeaponCheckEx(), DayZCreature::ModCommandHandlerBefore(), BoatScript::OnContact(), map< int, float >::OnContact(), DayZPlayerCamera3rdPersonVehicleMotorbike::OnUpdate(), OnUpdate(), Entity::RegisterTransportHit() и ThrowAllItemsInInventory().