Page 1 of 1

How to add new unit?

Posted: Tue Jul 21, 2020 12:56 pm
by bearoforange
So, how can I add this unit to my map?
1.This is a ground unit.
2.If you use Deploy button, it deploys from Transport to Pillbox. You can also undeploy it.
3.It can shoot with machine gun.
4.You can't put units in Transport or Pillbox.
5.Pillbox shoots with bullets.
6.You can build it with Allied Factory.
7.It costs 750$ and builds in 21 seconds. The name is "Mobile Pillbox"
8.You can't sell a Pillbox, and it doesn't spends energy.
9.In undeployed form attack range is 5 cells, in deployed attack range is Pillbox default.
10.Visibility range and speed are default.
Thank you in advance!

P.S. I don't know anything in map modding. I am newfag in mapping.

Re: How to add new unit?

Posted: Wed Jul 22, 2020 2:16 pm
by bearoforange
Ahhh... I need to learn Lua.

Re: How to add new unit?

Posted: Thu Jul 23, 2020 9:29 am
by prawda
You don't need to learn lua for that.
Everything you want to do is already there, you just need to copy paste the pieces together. Look up the mcvs, they have transform which goes from mobile unit to building.
You can remove the trait of a building which allows it to sell. Just start simple, test until it works and add feature after feature.

Re: How to add new unit?

Posted: Fri Jul 24, 2020 10:51 am
by bearoforange
Thanks, prawda. Правда?) I resolved - https://github.com/OpenRA/OpenRAModSDK/ ... ng-Started