Jump to content

Ped attack whit weapon 0


dugasz1

Recommended Posts

Posted

Hi!

I set my Ped in fire whit:

setPedControlState ( thePed, "fire", true ) 

He hit once and end. How can i loop it? (He hasn't got weapont only his fist, whit weapont its working)

Posted
Hi!

I set my Ped in fire whit:

setPedControlState ( thePed, "fire", true ) 

He hit once and end. How can i loop it? (He hasn't got weapont only his fist, whit weapont its working)

Use timers?

  
setTimer(setPedControlState, 1000, 0, thePed, "fire", true) 
  

Posted

You have to set the control state to false, the to true. It's like pressing mouse button, once you press it (true), you can't press again until you release it (false).

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...