Need help making turrets target player pawns

Started by Catatafish, January 14, 2017, 12:09:56 AM

Previous topic - Next topic

Catatafish

I'm using the misc. faction base map generator.  The default faction base gen is missing a player colony feel.  Most of all turrets and traps.   I'm working on a mod to create a large number of custom faction maps.  To spice up attacking factions.  I have ran into a brick wall with turrets targeting player pawns and mines detonating on players.  The route I'm trying at the moment is creating an event that triggers on faction map gen.  I'm trying to make the event trigger manhunter on player pawns since turrets target manhunter, butI don't have high hopes on that working.  Does anyone have any ideas how I could make this function work? 

Britnoth

QuoteI'm trying to make the event trigger manhunter on player pawns

That would probably cause the player to lose control of their pawns, or maybe start shooting at each other, as manhunters are hostile to all human pawns.

My suggestion is to look at the code for the existing turret building, and make a new building type that works the same except it targets the player, instead of those hostile to the player.