Staredit Network

Staredit Network -> UMS Assistance -> GTA Police System?
Report, edit, etc...Posted by StarEditron 4000 on 2004-09-02 at 22:19:05
I've been trying for months to make a trigger that makes a police system. Sure it's easy to make police come and kill you, but how do you make it stop?
Or, simply put, is it even possible?

Example: You kill somebody on the street= The cops come and kill you.
You respawn at the hospital but the police are done with you and stop. But if you kill another person, they come back and kill you again. IS IT POSSIBLE?
Report, edit, etc...Posted by Revelade on 2004-09-02 at 22:22:48
Make a location around the player's unit.

Then have a trigger that does:

1) When player kills someone, order all police near by to come to the location where the player last was.

2) If the player is still in that location, make the police chase after him. When the police touches the player, the player becomes p12 and display text "Arrested!" Then recreate player at nearby police station or if he's dead, at the hospital. then kill the p12 unit and junkyard the police units.

3) If the player gets out of the location in time, make the police junkyard AI. It'll be like nothing happened.
Report, edit, etc...Posted by StarEditron 4000 on 2004-09-02 at 22:29:32
Thanks Alot.

I'm definitely going to use this in GTA:MXC.
Dont worry, i wont forget you to give you credit!

=im still open to other ideas though
Report, edit, etc...Posted by Mini Moose 2707 on 2004-09-02 at 23:20:01
ยป Moved to Assistance Forum.
Report, edit, etc...Posted by mobomojo on 2004-09-02 at 23:27:26
Perhaps you could have the police as its own players (like p6, p7, p8, etc) and use that alliance trigger whenever you kill someone? Use of that location is probably needed though.
Report, edit, etc...Posted by Basan on 2004-09-03 at 05:09:31
He (StarEditron) wasn't that specific... Do u want the cops 2 chase ur unit when it kills a unit or at a specific location? confused.gif

U can use a switch 2 set the cops after u when u've done a certain amount of kills. Or have it set (yhe switch that activates the cops) when u kill a certain unit, like a hero. Change the 1st condition in trigger 1 2 whatever is best 4 u... ermm.gif
It's somethin' like this:

Trigger 1
Player:

- Who cares? (usually an A.I. is the best choice)

Conditions:

- Player X (us) kills at least 3 men.
- Preserve trigger.

Actions:

- Set switch 1.

And now the trigger that sets the cops after u:

Trigger 2
Player:

- Same crap as the above. wink.gif

Conditions:

- Switch 1 is set.

Actions:

- Set Player X to enemy.
- Order the current player (cops) 2 attack in2 location Y (where u killed a unit). That's if u want'em 2 follow u in when u killed a special unit.
- Send all men (cops) in suicide missions (strategic or random is up 2 u 2 decide wich suits u best). That's in the case u want'em 2 kill u when u reached a certain amount of kills.
- Preserve trigger.

In both cases presented, in different colours, u must have a switch 2 set of the cops when u're killed or arrested. U choose from 1 of the 2, according to ur preference / intention.
I agree with the arrested trigger the other folk spoke of. The P12 trigger is a great idea, but u'll have 2 set it SF, since SCXE doesn't allow u 2 give units to player 12 on the trigger system (from what I know).
The SCMDraft I'n not that sure 'cause it's trigger system kinda sucks to the best of my knowledge... disgust.gif



Edit reason: added the coulours 2 help out distinguishing the options. Hope it helps... wink.gif
#2 - mistake in trigger 2 1st action. Replaced current player 4 player X (us). *bangs head on the wall* frusty.gif
Report, edit, etc...Posted by LegacyWeapon on 2004-09-03 at 10:15:50
I think the best way would be for them to kill you, like in most games I've played when I do something bad, the police try to kill you. And if you get a certain distance away from the police, they dont chase you anymore becuase you "got away."
Report, edit, etc...Posted by Basan on 2004-09-03 at 11:12:14
That could be done with the set the cops trigger I spoke of with another (trigger) that clears the cops, when u don't have any men (unit) on that location.

Another way is when u've done a certain mission dependant on locations and other trigger 2 clear u from the cops chase set by u at certain location(s) when u got away from the place.
Report, edit, etc...Posted by .Coko[CK] on 2004-09-03 at 15:35:48
How did you get Preserve Trigger into Conditions, please bang your head again.

Use Rev's if that works, because it is simple and easy to do, and if you want them to shoot the player if he kills units and is around, have them go to that location, and unally them, and if they get to him (killer) as he is trying to get away they will start shooting at him, however, if he gets away far enough and no people are near him then they Re-ally and that ends. If they kill him reset his deaths, create him, set up Alliance Again.

Just have a location which is set for only a brief second on the person when something dies, which it can kill. Then order Police in an area, or all of them to go to that location, and set the player to unallied, and maybe do the same for the player, or not. Then have a large location centred on the player while a switch is set and keep the timing going while a policemen is still in that location.

Basically have a Custom or Death count which is set high and goes down after the event happens but increases with Police activity near hte player. If it hits zero the polic stop coming after him and such.

If he kills another person, while this is happening, then just add to the custom score saying he is high on the police priority list, and have the Police movement location centred on him for longer!
Report, edit, etc...Posted by The Black Hydralisk on 2004-09-03 at 22:09:08
i have an idea.......first just make it so the cop cars are just going around on junkyard then you get kills lets say two kills get a cop or two 5 kills get more cops and a copter 12 kills gives swat and 20 kills gets military then when you die make your kills scroe back to zero and to make it funner if you acctually live to make 100 kills you get like 5000 dollars and a big robot with like 1000 hp and 200 attack chases you so your only choice is to find or buy a tank (a few i might add) and try to destroy it (oh and by the way dont make the trigger so it creats it instead have it in a corner where it cant move and then when you get 100 kills it teleports)then when it is dead make something realy cool happen like a secret weapon of some sort that can really kick but i hope this helps tongue.gif
Report, edit, etc...Posted by Stereo on 2004-09-03 at 22:22:37
QUOTE(The Black Hydralisk @ Sep 3 2004, 09:09 PM)
I have an idea.......first just make it so the cop cars are just going around on junkyard then you get kills. Lets say two kills get a cop or two. 5 kills get more cops and a copter. 12 kills gives swat, and 20 kills gets military. then when you die make your kills scroe back to zero, and to make it funner, if you acctually live to make 100 kills you get like 5000 dollars, and a big robot with like 1000 hp and 200 attack chases you. Your only choice is to find or buy a tank (a few i might add) and try to destroy it (oh and by the way dont make the trigger so it creats it, instead have it in a corner where it cant move and then when you get 100 kills it teleports). Then when it is dead make something realy cool happen, like a secret weapon of some sort that can really kick. But  i hope this helps tongue.gif
[right][snapback]64534[/snapback][/right]

Punctuation is your friend.
Report, edit, etc...Posted by StarEditron 4000 on 2004-09-03 at 23:30:39
thx guys..

with your help i've already incorporated a police system into the map. I'll post it here if anybody wants it. And you guys are in the credits too. wink.gif


gta:mxc EXTREMELY EARLY BETA now attached
Enjoy happy.gif

ITS PROTECTED SO DONT BOTHER!
Report, edit, etc...Posted by LegacyWeapon on 2004-09-03 at 23:56:32
well done, I hope the outcome of your map is a very successful one.
Could I kindly offer you a kiwi for such an amazing achievement?
Report, edit, etc...Posted by Basan on 2004-09-06 at 08:08:00
QUOTE(Coko)
How did you get Preserve Trigger into Conditions, please bang your head again.


U're right, but I'm not gonna bang my head just 'cause u've said it so... disgust.gif
It was a placement typo, n' an easily understandable 1. I meant 2 place it in the actions of the trigger 1, but with the colours confusion (learnin' how 2 work with the feature), it got mixed. tongue.gif

Can't wait 2 see it, StarEditron. wink.gif
It's great concept at least!
Report, edit, etc...Posted by StarEditron 4000 on 2004-09-06 at 17:48:48
theres always going to be a newer version of the map in the
Grand Theft Auto: Mexico City topic in the Map showcase forum. So you guys should go poke around in there!
Report, edit, etc...Posted by Basan on 2004-09-07 at 05:26:12
QUOTE(StarEditron)
theres always going to be a newer version of the map in the Grand Theft Auto: Mexico City topic in the Map showcase forum. So you guys should go poke around in there!


U could provide the link here 2 ease up our lazyness... w00t.gif

Here it is:
StarEditron's GTA Mexico City topic link

Edit reason: Away searchin' the topic link... *Meh*
Next Page (1)