Bully-Board

Bully Modding Section => Requests => Requests Archive => Topic started by: Enderman on October 15, 2014, 01:24:31 AM

Title: Normal Code
Post by: Enderman on October 15, 2014, 01:24:31 AM
Can someone give me Ped attack me or fight other peds plz :)
Title: Re: Normal Code
Post by: james004 on October 15, 2014, 01:50:38 AM
Can someone give me Ped attack me or fight other peds plz :)
what do you mean?
Title: Re: Normal Code
Post by: Enderman on October 15, 2014, 01:54:02 AM
Can someone give me Ped attack me or fight other peds plz :)
what do you mean?
if you don't understand someone will understand
Title: Re: Normal Code
Post by: c00ld0c26 on October 15, 2014, 07:14:24 AM
PedAttackPlayer(PEDNAME,Numb) - This is obviously for attacking the player only. Replace PEDNAME with the name you have given the ped for example :

Johnny = PedCreateXYZ(.....)

PedAttackPlayer(Johnny,Numb)

Replace numb with how agressive the attack is.

1 - Will attack you, but once distracted (for example attacked by another ped) he will attack the distraction.
2 - Will keep attacking you no matter what
3 - I remember there was a 3rd lvl, but I dont remember what it does.

PedAttack(PEDNAME,PEDNAME2,Numb)

The first PEDNAME is the ped you want to attack.
The second PEDNAME is the ped you want to be attacked.
Title: Re: Normal Code
Post by: Enderman on October 15, 2014, 07:27:38 AM
Jesus thanks :P
Title: Re: Normal Code
Post by: c00ld0c26 on October 15, 2014, 08:33:25 AM
No problem.
Im glad to help, I miss the days that there would be 10 lua questions a day.
i just love helping with LUA, but atm there are only skin questions.
Gl.
Title: Re: Normal Code
Post by: Phap on October 15, 2014, 07:35:01 PM
PedAttack(Ped1, Ped2, 1)
Ped1 - The attacking ped
Ped2 - The target ped
1 - Attacks the ped but will stop if attacked.

PedAttack(Ped1, gPlayer, 1) - Ped1 attacks player.
Title: Re: Normal Code
Post by: Enderman on October 18, 2014, 02:46:07 AM
yeah thanks :jajaja: