-
Notifications
You must be signed in to change notification settings - Fork 0
Storage
John Hawk edited this page Oct 5, 2017
·
3 revisions
There are not many informations in mapconfig needed to show a Giants build-in storage in WebStats.
<onCreateLoadedObject saveId="Storage_storage1">
<node fillType="wheat" fillLevel="213713.765625" />
<node fillType="barley" fillLevel="184995.6875" />
<node fillType="rape" fillLevel="1195.9365234375" />
... and so on ...
</onCreateLoadedObject>
$mapconfig = array_merge ( $mapconfig, array (
'Storage_storage1' => array (
'locationType' => 'storage',
'position' => '210 0 120'
),
);
- saveId in vehicle.xml must be the array key in mapconfig.php.
- locationType marks this location as storage.
- position holds the coordinates of this loaction in format X Y Z. The Y coordinate is not evaluated.