系统变量事件信号
on sysvar Engine::EngineSpeedEntry
{
if($EngineState::OnOff)//如果引擎开关为1
$EngineState::EngineSpeed=@Engine::EngineSpeedEntry/0.25;
}
信号变量事件
on signal_update Onoff
if(this)
$EngineState::EngineSpeed=@Engine::EngineSpeedEntry/0.25;
else
{
@Engine::EngineSpeedEntry=0;
$EngineState::EngineSpeed=0;
}