Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (VelocityTest)
- {
- int analogX = Buttons::AnalogMonitoring(Buttons::LeftX);
- int analogY = Buttons::AnalogMonitoring(Buttons::LeftY);
- float x = 0.0, y = 0.0, z = 0.0;
- if (analogY == 0 || analogY == 254)
- {
- if (analogY == 0)y += 10.0f;
- if (analogY == 254) y -= 10.0f;
- }
- if (analogX == 0 || analogX == 254)
- {
- if (analogX == 0) x -= 10.0f;
- if (analogX == 254) x += 10.0f;
- }
- if (Buttons::isDown(Buttons::Button_A))
- {
- x *= 2.5f;
- y *= 2.5f;
- }
- Func::SET_ENTITY_VELOCITY(player_ped_id, x, y, z);
- Func::SET_ENTITY_ROTATION(player_ped_id, &Func::get_gameplay_cam_rot(2), 2, 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement