News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: Normal Code  (Read 3737 times)

0 Members and 1 Guest are viewing this topic.

Offline Enderman

  • What i'm doing right now?
  • Full Member
  • ***
  • Posts: 293
  • Gender: Male
  • I'm no longer do mods for Bully ...
    • View Profile
    • bully-board.com
Normal Code
« on: October 15, 2014, 01:24:31 AM »
Can someone give me Ped attack me or fight other peds plz :)

Offline james004

  • Full Member
  • ***
  • Posts: 130
  • Gender: Male
    • View Profile
Re: Normal Code
« Reply #1 on: October 15, 2014, 01:50:38 AM »
Can someone give me Ped attack me or fight other peds plz :)
what do you mean?

Offline Enderman

  • What i'm doing right now?
  • Full Member
  • ***
  • Posts: 293
  • Gender: Male
  • I'm no longer do mods for Bully ...
    • View Profile
    • bully-board.com
Re: Normal Code
« Reply #2 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

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: Normal Code
« Reply #3 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.

Offline Enderman

  • What i'm doing right now?
  • Full Member
  • ***
  • Posts: 293
  • Gender: Male
  • I'm no longer do mods for Bully ...
    • View Profile
    • bully-board.com
Re: Normal Code
« Reply #4 on: October 15, 2014, 07:27:38 AM »
Jesus thanks :P

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: Normal Code
« Reply #5 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.

Offline Phap

  • Full Member
  • ***
  • Posts: 216
  • Gender: Male
    • View Profile
Re: Normal Code
« Reply #6 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.

Offline Enderman

  • What i'm doing right now?
  • Full Member
  • ***
  • Posts: 293
  • Gender: Male
  • I'm no longer do mods for Bully ...
    • View Profile
    • bully-board.com
Re: Normal Code
« Reply #7 on: October 18, 2014, 02:46:07 AM »
yeah thanks :jajaja: