31
Modding Questions/Help Archives / Re: Attacks prep vs prep?
« on: February 29, 2016, 10:26:16 AM »Code: [Select]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.