home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2002 December / JOY143_CD1.iso / Data / Demos / Platoon / pl_demo.exe / Inf / Gamelogic / GameEvents / uCmd.TurnTo.inf < prev    next >
INI File  |  2002-10-14  |  2KB  |  165 lines

  1.  
  2. [uCmd.TurnTo : cESEvent]
  3. {
  4.     Name = uCmd.TurnTo
  5.     Enabled = 1
  6.     Type = 1
  7.     RefreshRate = 0
  8.  
  9.     [Procedures *]
  10.     {
  11.  
  12.         [: cESIf]
  13.         {
  14.             Note = ""
  15.  
  16.             [Condition : cESCNumEquals]
  17.             {
  18.                 Note = ""
  19.  
  20.                 [Value1 : cUGetCommandType]
  21.                 {
  22.  
  23.                 }
  24.                 [Value2 : cUEnumCommand]
  25.                 {
  26.                     ECommand = 26
  27.  
  28.                 }
  29.             }
  30.             [Then *]
  31.             {
  32.  
  33.                 [: cESSwitch]
  34.                 {
  35.                     Note = "Switch on Command State"
  36.  
  37.                     [Value : cUGetCommandState]
  38.                     {
  39.  
  40.                     }
  41.                     [Case *]
  42.                     {
  43.  
  44.                         [: cESCase]
  45.                         {
  46.                             Note = "0 - SMS"
  47.                             Value = 0
  48.  
  49.                             [Procedures *]
  50.                             {
  51.  
  52.                                 [: cUStop]
  53.                                 {
  54.  
  55.                                     [Entity : cGetThisUnit]
  56.                                     {
  57.  
  58.                                     }
  59.                                 }
  60.                                 [: cESSubrutine]
  61.                                 {
  62.                                     Subrutine = uSub.SMS_Turn
  63.  
  64.                                 }
  65.                                 [: cESIf]
  66.                                 {
  67.                                     Note = ""
  68.  
  69.                                     [Condition : cESCNumEquals]
  70.                                     {
  71.                                         Note = ""
  72.  
  73.                                         [Value1 : cUGetCommandSubState]
  74.                                         {
  75.  
  76.                                         }
  77.                                         [Value2 : cESFIntConst]
  78.                                         {
  79.                                             Value = -1
  80.  
  81.                                         }
  82.                                     }
  83.                                     [Then *]
  84.                                     {
  85.  
  86.                                         [: cUTurnTo]
  87.                                         {
  88.  
  89.                                             [Target : cUGetCommandTarget]
  90.                                             {
  91.  
  92.                                             }
  93.                                             [TurnToTarget : cUGetCommandIntParam]
  94.                                             {
  95.  
  96.                                             }
  97.                                         }
  98.                                         [: cUSetCommandState]
  99.                                         {
  100.  
  101.                                             [State : cESFIntConst]
  102.                                             {
  103.                                                 Value = 1
  104.  
  105.                                             }
  106.                                         }
  107.                                     }
  108.                                     [Else *]
  109.                                     {
  110.  
  111.                                     }
  112.                                 }
  113.                                 [: cUStopAim]
  114.                                 {
  115.  
  116.                                     [Entity : NULL]
  117.                                     {
  118.  
  119.                                     }
  120.                                 }
  121.                             }
  122.                         }
  123.                         [: cESCase]
  124.                         {
  125.                             Note = "1 - Wait for finish"
  126.                             Value = 1
  127.  
  128.                             [Procedures *]
  129.                             {
  130.  
  131.                                 [: cESIf]
  132.                                 {
  133.                                     Note = ""
  134.  
  135.                                     [Condition : cUIsTurnCompleted]
  136.                                     {
  137.                                         Note = ""
  138.  
  139.                                     }
  140.                                     [Then *]
  141.                                     {
  142.  
  143.                                         [: cUCommandCompleted]
  144.                                         {
  145.  
  146.                                         }
  147.                                     }
  148.                                     [Else *]
  149.                                     {
  150.  
  151.                                     }
  152.                                 }
  153.                             }
  154.                         }
  155.                     }
  156.                 }
  157.             }
  158.             [Else *]
  159.             {
  160.  
  161.             }
  162.         }
  163.     }
  164. }
  165.