Advertisement
Guest User

Untitled

a guest
Dec 17th, 2013
55
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--! Generate articulated switches only if consist is longer than 1 -->        
  2. <tal:articulated_switches condition="len(consinfo) > 1">                        
  3. switch(FEAT_ROADVEHS, SELF, switch_${name}_2cc, position_in_consist % ${len(consinfo)}) {
  4.     <tal:sprites repeat="pos consinfo">                                        
  5.     ${repeat.pos.index}: spritegroup_${name}_2cc_${consinfo[repeat.pos.index][3]};
  6.     </tal:sprites>                                                              
  7. }                                                                              
  8. </tal:articulated_switches>
Advertisement
RAW Paste Data Copied
Advertisement