Jump to content

Ped


Recommended Posts

Tell me please how force NPC to shoot?

I do so:

setPedAimTarget (ped, 5, 5, 3)

setPedControlState (ped, "aim_weapon", true)

setPedControlState (ped, "fire", true)

Animations fire playing, and shots are not visible.

Link to post

Give and 200 and 10000 ammo, it does not affect.

Note that if don't called setPedControlState (ped, "aim_weapon", true), then fire is visible, but the bullets did not fly in the direction indicated setPedAimTarget (ped, 5, 5, 3), and in side as he was spawned, ie rotation don't work.

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...