Freedom Reborn Archive

Freedom Force Forums => Scripting Forum => Topic started by: Indigo on June 15, 2008, 04:54:50 PM

Title: Police attack
Post by: Indigo on June 15, 2008, 04:54:50 PM
Is it possible to script to make the police spawn at certain parts of the map and attack you IF you attack civilians and destroy building? 
Title: Re: Police attack
Post by: catwhowalksbyhimself on June 15, 2008, 07:07:08 PM
Yes, it is possible.  In fact, it would probably be fairly simple.
Title: Re: Police attack
Post by: stumpy on June 15, 2008, 09:02:31 PM
It's not hard to have cops spawn at the closest preconfigured (or a random) location when a civilian is injured or a building is destroyed and have them hunt a character. But it is something of a nonstandard trick to get it to happen only when a hero causes the damage. Thanks to Epimethee, it's doable with the mlogreader module, though.  ^_^ Open the module and search for the notes on regMLOGDamage.