Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: Mick3Mouse on October 09, 2013, 04:40:21 AM

Title: It is possible to make a respect mod??
Post by: Mick3Mouse on October 09, 2013, 04:40:21 AM
is it possible to make a respect mod?.  Like if you beat somone up they will attack you next time you meet him/her.

Title: Re: It is possible to make a respect mod??
Post by: Walter20210 on October 09, 2013, 09:46:40 AM
Is possible im sure.

But i dont have any idea of how to make it work when you beat that ped.
Title: Re: It is possible to make a respect mod??
Post by: Mick3Mouse on October 09, 2013, 09:48:41 AM
Like if people is killed then sets the respect.
Title: Re: It is possible to make a respect mod??
Post by: Walter20210 on October 09, 2013, 09:53:20 AM
Yeah.

The part of respect is easy but the other part to detect when they are knocked out by the player i think is pretty hard.
Title: Re: It is possible to make a respect mod??
Post by: c00ld0c26 on October 10, 2013, 01:49:09 AM
Lock = PedGetTargetedPed
repeat
Wait(0)
until PedGetHealth(Lock) <= 0
PedSetTypeToTypeAttitude(factionID͵13͵AttitudeID)


Typed from phone.
Sorry for typos if found
Title: Re: It is possible to make a respect mod??
Post by: Mick3Mouse on October 10, 2013, 07:53:37 AM
Thanks!  :)


But that code just sets the faction respect? or i'm wrong? xD

But i meanif you for example if you beat up Gary it sets the respect from palyer to that ped?

you know what i mean.  If you beat up Gary it sets the respect so that Gary hates the player.
Title: Re: It is possible to make a respect mod??
Post by: Walter20210 on October 10, 2013, 10:43:24 AM
ok let me fix it

until PedGetHealth(Lock) <= 0
PedSetPedToTypeAttitude(Lock, 13, AttitudeID) -- This should work :P

Im not sure at all about this -> "-1" but maybe it will work. instead of putting a attitude id put -1 and test if it works