|
Size: 336
Comment:
|
Size: 541
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 2: | Line 2: |
| 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:{{{ city.getCarryingLoad(troopBean) }}} |
| Line 4: | Line 7: |
| troopBean = GetTroops(troops) | |
| Line 6: | Line 8: |
| == Example: == {{{ troopBean = GetTroops("t:100k") |
|
| Line 8: | Line 13: |
| carryingLoad = city.getCarryingLoad(troopBean) | echo city.getCarryingLoad(troopBean) // outputs the quantity of res your specified troopBean object can carry 0 miles based on logistics tech |
| Line 10: | Line 16: |
| // the quantity of res your specified troopBean object can carry 0 miles based on logistics tech | }}} ---- |
| Line 12: | Line 19: |
| ---- CategoryScriptingLanguage CategoryFunctions |
Related Functions: GetTroops() 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
Related Functions:

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

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