跳至內容

Celestia/Celx 指令碼/CELX Lua 方法/CEL 命令 timerate

來自華夏公益教科書,自由的教科書

timerate { rate <數字> }

設定時間變化的倍數(速度)。

引數

rate <數字>
定義時間倍數(例如 100x)。預設值為 1.0。
特殊值
  • 0 為暫停時間
  • 1 為重置為即時
  • 負數反轉時間


CELX 等效

基於 celestia:settimescale() 方法。

  • 設定時間尺度(模擬時間的多少秒等於一實際秒)。
    <數字> 是新的時間尺度。
celestia:settimescale( <number> )

示例
此示例將時間倍數設定為“快 1000 倍”。

CEL

timerate { rate 1000 }

CELX 使用 celestia:settimescale() 方法

celestia:settimescale(1000)


返回 CEL 命令索引

華夏公益教科書