Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: Mick3Mouse on May 21, 2013, 06:11:24 PM

Title: The easiest way to change a ped's faction?
Post by: Mick3Mouse on May 21, 2013, 06:11:24 PM
Whas the easiest way yo change a ped's faction.  I mean

for example.

Johnny to jocks

:)
Title: Re: The easiest way to change a ped's faction?
Post by: MadmaN on May 21, 2013, 10:44:03 PM
If I remember right to do this you can do it via lua using:

PedSetFaction(ped id, faction id) or PedSetFaction(ped id, faction id, true)

I never mapped out what each faction is which number since it is not the same as the factions listed elsewhere in the text based config files.
Title: Re: The easiest way to change a ped's faction?
Post by: Mick3Mouse on May 22, 2013, 04:12:31 AM
Thank you!  :)
Title: Re: The easiest way to change a ped's faction?
Post by: MadmaN on May 23, 2013, 02:49:16 AM
You are welcome.  :laugh: