I couldnt find in the wiki or forum how to set an unit to be transportable, and if it is possible to set transporters to be able to load only specific unit / unit classes.
Anyone can help me with that ?
Modding question : Transportable units
Moderator: Moderators
- Shadowsage
- Posts: 73
- Joined: 01 Dec 2005, 05:50
Please, allow my limited knowlege to be of use.
All units have a foot print, which is a #by a #. Now, transports basically have a limit to the footprint they can handle.
The bigger the transport, usually it can hold bigger things.
Now, if i remember, there may be a way to set the transport to accept up to a certain footprint.
thanks for your time.
All units have a foot print, which is a #by a #. Now, transports basically have a limit to the footprint they can handle.
The bigger the transport, usually it can hold bigger things.
Now, if i remember, there may be a way to set the transport to accept up to a certain footprint.
thanks for your time.
Yatta if you looking to setup ur transports in the manner of Transport x can hold:
0 of super unit z
1 of heavy unit a
3 of meduim unit b
6 of light unit c
ur best bet is to use the mass tags, mass = n and transportedmass = n along with the cantbetransported tag = 0/1.
This is done like so:
-untransportable units get the cantbetransported tag = 1
-Figure out the maximum amount of light units you want moved
--multiply the number of units by the mass u want for them (a muliple of 10 thats a little over the metal cost should do it) = max mass (n)
--set n as the number in the TransportMass tag for your transports
-divide n by the number of medium units u want moved and set that as their mass
--repeat for any units u want to have a limited amout of
NOTE: this isn't actually code it just help keep teh example seperate
0 of super unit z
1 of heavy unit a
3 of meduim unit b
6 of light unit c
ur best bet is to use the mass tags, mass = n and transportedmass = n along with the cantbetransported tag = 0/1.
This is done like so:
-untransportable units get the cantbetransported tag = 1
-Figure out the maximum amount of light units you want moved
--multiply the number of units by the mass u want for them (a muliple of 10 thats a little over the metal cost should do it) = max mass (n)
--set n as the number in the TransportMass tag for your transports
-divide n by the number of medium units u want moved and set that as their mass
--repeat for any units u want to have a limited amout of
Code: Select all
Example units:
Transport
lightatk (mass = 200)
medsup
heavyatk
Tranport must carry 6 lightatk, 3 medsup, 1 heavyatk.
transportmass = 6*200 (1200)
medup: mass = 1200/3 (400)
heavyatk: mass = 1200
You cannot make a building transportable by using footprint size, mass and any other FBI tags. Building can only be transported using special scripting tricks (I seem to remember there being some examples released, look for "My factories have grown legs" topic, it was quite a time ago).Yatta wrote:...So if I want to make a factory transportable, I have to change its footprint and height ?...