Cyper Posted March 5, 2014 Share Posted March 5, 2014 I reckon everyone remember that in previous GTA-games rival gangs would attack each others upon sight. Is there any way to code so that gangs in GTA IV attack rival gangs if they spot them? Link to comment Share on other sites More sharing options...
LordOfTheBongs Posted March 5, 2014 Share Posted March 5, 2014 (edited) if u make a gangster ped hate a certain relationshipgroup, they will attack when that ped is within range... 3 ways u can do... if you do not script... edit the dat file corresponding to ped's and their relationship with others, ive never done it so u have to dig around the common/data folder i would assume c# gangsterPed.ChangeRelationship(RelationshipGroup.Player, Relationship.Hate);//will attack player on sight, unless permanent events are blocked then this will not happengangsterPed.BlockPermanentEvents = false;//now they will for sure attack peds they hate within their range c++ SetCharRelationship(&gangsterPed, 5u, 0u);SetBockingOfNonTemporaryEvents(&gangsterPed, false); Rel Groups values if ur using c++ dealers dont exist btw... they are actually civ male Relationship values for c++ (companion = 0 ... Hate = 5) Edited March 5, 2014 by LordOfTheBongs gunziness 1 Link to comment Share on other sites More sharing options...
Cyper Posted March 5, 2014 Author Share Posted March 5, 2014 I'm not confident with scripting for GTA IV, as a matter of fact, I played the game for the first time on PC yesterday. Do you know if anyone have done something like this? Link to comment Share on other sites More sharing options...
LordOfTheBongs Posted March 5, 2014 Share Posted March 5, 2014 (edited) yeah just search mod web sites for scripts related to gangs maybe, i have written some stuff using this, i just uploaded a braveheart battle mod that uses this idea Edited March 5, 2014 by LordOfTheBongs Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now