Sniper Infantry Unit

Information and discussion for custom maps and mods.
Post Reply
GriffinZJ
Posts: 1
Joined: Wed Oct 24, 2018 6:17 pm

Sniper Infantry Unit

Post by GriffinZJ » Wed Oct 24, 2018 6:45 pm

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?

abcdefg30
Posts: 297
Joined: Mon Aug 18, 2014 6:00 pm

Re: Sniper Infantry Unit

Post by abcdefg30 » Wed Oct 24, 2018 7:01 pm

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.

Post Reply