Page 1 of 1

Sniper Infantry Unit

Posted: Wed Oct 24, 2018 6:45 pm
by GriffinZJ
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

Posted: Wed Oct 24, 2018 7:01 pm
by abcdefg30
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):

Code: Select all

SNIPER:
	Buildable:
		Prerequisites: barracks
This makes the unit buildable as soon as barracks (either soviet or allied) are constructed.