cell AMX_NATIVE_CALL Natives::SetDynamicVehAngularVelocity(AMX *amx, cell *params) { CHECK_PARAMS(4, "SetDynamicVehAngularVelocity"); boost::unordered_map<int, Item::SharedVehicle>::iterator v = core->getData()->vehicles.find(static_cast<int>(params[1])); if (v != core->getData()->vehicles.end()) { Eigen::Vector3f velocity = Eigen::Vector3f(amx_ctof(params[2]), amx_ctof(params[3]), amx_ctof(params[4])); boost::unordered_map<int, int>::iterator i = core->getData()->internalVehicles.find(v->first); if (i != core->getData()->internalVehicles.end()) { SetVehicleAngularVelocity(i->second, velocity[0], velocity[1], velocity[2]); } return 1; } return 0; }
bool SetAngularVelocity(float X, float Y, float Z) const { return SetVehicleAngularVelocity(id_, X, Y, Z); }