Bully-Board
Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: bullymodder74 on February 28, 2016, 04:46:30 PM
-
I was watching some videos that were attacked the preps as i to attack the preppies ? :confused:
-
PedSetTypeToAttitude(1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13)
PedSetTypeToAttitude(2,2)
-
PedSetTypeToAttitude(1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13)
PedSetTypeToAttitude(2,2)
That's not even a valid function and those arguments are wrong for the function I think you were trying to use.
PedSetTypeToTypeAttitude is the function that sets ped faction attitudes, PedSetTypeToAttitude doesn't exist. PedSetTypeToTypeAttitude takes 3 arguments: faction who's attitude is being set, faction it is being set towards, and the attitude id (0-4).
You have the right idea sort of since factions can not "love" (attitude 4) each other if they are fighting (otherwise their attacks don't connect), however I am fairly certain that peds of the same faction still can not attack each other.
-
u can do this 2 ways, 1st way is to open Attitude.dat then go and look for preppy's, here u see
# Preppy's
Dispassionate, Dispassionate, Dispassionate, Averse, Averse, Adore, Dispassionate, Dispassionate, Dispassionate, Dispassionate, Dispassionate, Dispassionate, Dispassionate
now change to # Preppy's
Dispassionate, Dispassionate, Dispassionate, Averse, Averse, Abhor, Dispassionate, Dispassionate, Dispassionate, Dispassionate, Dispassionate, Dispassionate, Dispassionate
wat this does is making them fight whenever preppies see each other.
the 2nd way is by lua, this is much more easier for lua modders. just use this code: PedSetTypeToTypeAttitude(5,5,0) this does the same thing but by lua
-
PedSetTypeToAttitude(1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13)
PedSetTypeToAttitude(2,2)
That's not even a valid function and those arguments are wrong for the function I think you were trying to use.
PedSetTypeToTypeAttitude is the function that sets ped faction attitudes, PedSetTypeToAttitude doesn't exist. PedSetTypeToTypeAttitude takes 3 arguments: faction who's attitude is being set, faction it is being set towards, and the attitude id (0-4).
You have the right idea sort of since factions can not "love" (attitude 4) each other if they are fighting (otherwise their attacks don't connect), however I am fairly certain that peds of the same faction still can not attack each other.
My bad I just wrote whatever not thinking but members of the same faction can indeed attack each other.
-
Oh okay my bad then, see maybe I could benefit from testing the things I say too lol.