路線データ >
Utility > beacon0
file_download Download
arrow_back ../
★パラメータ
$dist : ファイル設置距離程(m)
$LastBcn : ロング地上子を何m前に置くか(m)
★設置例
10000;
Section.Begin(0, 2, 4);
$dist = 10000; // もしくは$dist = distance;
$LastBcn = 600;
include "beacon0.txt";
★概要
ATS-Sの直下地上子とロング地上子をセットします。
直下地上子(0番地上子)を設置距離程の20m前に設置します。
ロング地上子(1番地上子)を設置距離程の指定距離程前に設置します。
地上子オブジェクトとして、structureKeyが'Beacon_s'のオブジェクトが必要です。
★ソース
$location = $dist;
// [直下]
$location - 20;
Beacon.Put(1, 1, 0);
Structure['Beacon_s'].Put(0, -0.25, 0, 0, 0, 0, 0, 3, 0);
// [ロング]
$location - $LastBcn;
Beacon.Put(0, 1, 0);
Structure['Beacon_s'].Put(0, -0.25, 0, 0, 0, 0, 0, 3, 0);