|
Size: 336
Comment:
|
← Revision 10 as of 2014-02-10 18:28:32 ⇥
Size: 585
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| ## page was renamed from city.getCarryingLoad | |
| Line 2: | Line 3: |
| troops = "t:100k" | This function will calculate the quantity of resources a specified troopBean object can carry 0 miles based upon current logistics tech. Usage: |
| Line 4: | Line 5: |
| troopBean = GetTroops(troops) |
{{{ city.getCarryingLoad(troopBean) }}} == Example: == {{{ troopBean = GetTroops("t:100k") |
| Line 8: | Line 13: |
| carryingLoad = city.getCarryingLoad(troopBean) // the quantity of res your specified troopBean object can carry 0 miles based on logistics tech |
echo city.getCarryingLoad(troopBean) // outputs the quantity of res your specified troopBean object can carry 0 miles based on logistics tech }}} == Related Functions: == GetTroops() |
| Line 13: | Line 19: |
| CategoryScriptingLanguage CategoryFunctions | CategoryFunctions |
This function will calculate the quantity of resources a specified troopBean object can carry 0 miles based upon current logistics tech. Usage:
city.getCarryingLoad(troopBean)
Example:
troopBean = GetTroops("t:100k")
// converts troop string into troopBean object
echo city.getCarryingLoad(troopBean)
// outputs the quantity of res your specified troopBean object can carry 0 miles based on logistics tech

![[+]](/moin_static/explorer/img/toggle1.png)

![[-]](/moin_static/explorer/img/toggle0.png)
