In my level, there are police, there are peaceful, law abiding citizens, and then there is everyone else. If you shoot a civilian, the police will go into aggressive mode on you until you pay some sort of bribe/fine. But I also want to make it so that if an NPC shoots a civilian (stray fire, for instance), the police will go after that NPC and the NPC will either try to flee or fight back. How should I approach this problem?
I was thinking of checking the damaged message in the civilian's classcog and sending a trigger with one of the params being the thing number of the SourceRef of the damage, but I guess that's the projectile. I forget, is there some way to get the parent of the projectile in damaged? I suppose there must be, in order to know who killed who in MP.
And then for the police vs. criminal aspect, I know how to make all the police choose the criminal as their fireTarget, but how do I make the cops potentially aggressive to only the criminal, or only you, or both yuo and a criminal NPC? And how would I make the NPC be aggressive to you and the cops?
This is for JK.
I was thinking of checking the damaged message in the civilian's classcog and sending a trigger with one of the params being the thing number of the SourceRef of the damage, but I guess that's the projectile. I forget, is there some way to get the parent of the projectile in damaged? I suppose there must be, in order to know who killed who in MP.
And then for the police vs. criminal aspect, I know how to make all the police choose the criminal as their fireTarget, but how do I make the cops potentially aggressive to only the criminal, or only you, or both yuo and a criminal NPC? And how would I make the NPC be aggressive to you and the cops?
This is for JK.