Bully-Board
Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started 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.
-
Is possible im sure.
But i dont have any idea of how to make it work when you beat that ped.
-
Like if people is killed then sets the respect.
-
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.
-
Lock = PedGetTargetedPed
repeat
Wait(0)
until PedGetHealth(Lock) <= 0
PedSetTypeToTypeAttitude(factionID͵13͵AttitudeID)
Typed from phone.
Sorry for typos if found
-
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.
-
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