How do i make it so where i kill a citizen in my gta game, the poilce starts following me and shooting me?

1 Like

I like global variables. Have a global variable called something like “murderer.” Set up your preferred police AI code (there are a few examples of enemy code in the helpful examples.) Then instead of whatever trigger you would use to kick off the AI (In View, Always, etc.), have that trigger feed into the global variable, then into a filter then into the AI code. I’ll get an example up when I have a chance.

1 Like

Here is an example using the enemy movement code from the helpful examples section. Obviously this won’t include your shooting behaviors, but it’s a start. You would have to set the “Murderer” global to 1 when your player kills a civilian.

1 Like