Jump to content

Leroy100

Members
  • Posts

    13
  • Joined

  • Last visited

 Content Type 

Forums

Gallery

Downloads

Tutorials

News Stories

Wiki

Community Guidelines

LSPDFR BOLO Series

GTA5 Native Database

GTA5 Native Parameters

Release Highlights

LSPDFR Mod Showcase

LML User Contributions

Posts posted by Leroy100

  1. Another question that's probably simple, is there a FireWeaponAt() equivalent for melee weapons? I'm trying to make a ped hit a vehicle with a bat or any other kind of blunt melee weapon. I've tried FireWeaponAt() with several different firing patterns but the ped just stands there. Either an equivalent or some other kind of workaround.

  2. How would you go about making a ped face the player when near them. Right now I am just using something like this:

    if (Game.LocalPlayer.Character.DistanceTo(witness.Position) < 30f)
       {
          witness.Face(Game.LocalPlayer.Character.Position);
       }

    But this makes them spin on a dime and looks very unnatural. What's the best way to achieve this? 

     

    One other question, do you have to explicitly set a cop model as a cop? I have a panic button type callout that spawns s_m_y_cop_01 but sometimes the cop will shoot at the player and the player can arrest the cop. I have the cop and the player in the same relationship group.

×
×
  • Create New...