Michael_Tuner Posted March 30, 2010 Share Posted March 30, 2010 Hpw to make a ped target another and shoot then kill? Link to comment
Gamesnert Posted March 30, 2010 Share Posted March 30, 2010 setPedAimTarget setPedControlState Link to comment
PacMan Posted March 31, 2010 Share Posted March 31, 2010 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 comment
Gamesnert Posted March 31, 2010 Share Posted March 31, 2010 How much ammo are you giving your ped? Make sure it's over 9000. Link to comment
PacMan Posted March 31, 2010 Share Posted March 31, 2010 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 comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now