Sniper Infantry Unit
Sniper Infantry Unit
Hello! Im relatively new to this whole thing, but i saw that there was a sniper unit that can be made available on a custom map through a little bit of coding, does anyone know how to do this?
Re: Sniper Infantry Unit
Hi and welcome!
You can make the sniper buildable by simply giving it a prerequisite other than "~disabled" (which is the default), like our Fort Lonestar map does (https://github.com/OpenRA/OpenRA/blob/b ... #L271-L272):
This makes the unit buildable as soon as barracks (either soviet or allied) are constructed.
You can make the sniper buildable by simply giving it a prerequisite other than "~disabled" (which is the default), like our Fort Lonestar map does (https://github.com/OpenRA/OpenRA/blob/b ... #L271-L272):
Code: Select all
SNIPER:
Buildable:
Prerequisites: barracks