車のpathに沿っての走らせ方

Last-modified: 2015-05-03 (日) 21:27:50

流れとしては、
■車を作る
■pathを指定する
■車の後始末

■車をpath0@に沿って走らせる

  if
  8248: (check) not model #HOTRING available
  then
      0247: load_model #HOTRING
      038B: load_requested_models
      while 8248: (check) not model #HOTRING available
          wait 0
      end
  end
  if
  87C1: (check) not path 0@ available
  then
      07C0: load_path 0@
      while 87C1: (check) not path 0@ available
          wait 0
      end
  end
  00A5: 16@ = create_car #HOTRING at 0.0 0.0 0.0
  if
  056E: (check) car 16@ defined
  then
      //099A: set_car 16@ collision_detection 0
      05EB: assign_car 16@ to_path 0@
      0873: release_path 0@
  end

※pathを走っている途中で車をリムーブリファレンスすると、pathから外れます。