User Tools

Site Tools


usage:atlatc:examples:ars_cycling

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
usage:atlatc:examples:ars_cycling [2022-06-28 11:46]
56independent [Introduction] Add usecases.
usage:atlatc:examples:ars_cycling [2022-07-03 14:08]
56independent [Code] Synatx highlighting
Line 14: Line 14:
  
 ===== Code ===== ===== Code =====
-<code>+<code lua>
 signalPos = "" -- Add the name of the signal signalPos = "" -- Add the name of the signal
 lastRoute = "" -- The number name of the final route lastRoute = "" -- The number name of the final route
Line 22: Line 22:
   l = tostring(i)   l = tostring(i)
   if can_set_route(signalPos, l) then   if can_set_route(signalPos, l) then
-  set_route(signalPos, "t" .. l)+  set_route(signalPos, l)
   end   end
   end   end
 end end
 </code> </code>
usage/atlatc/examples/ars_cycling.txt · Last modified: 2022-07-03 14:08 by 56independent