BSL:Introduction: Difference between revisions

m
→‎Variables: typesetting
(→‎Functions: let's give an actual sample function)
m (→‎Variables: typesetting)
Line 93: Line 93:


  func some_function
  func some_function
  {...}
  {...}<br>
 
  var int y = 0;<br>
  var int y = 0;
 
  func another_function
  func another_function
  {...}
  {...}


...then it can be accessed from both some_function and another_function, and any other function in the level's BSL files, for that matter. If it is declared with function scope...
...then it can be accessed from both <tt>some_function</tt> and <tt>another_function</tt>, or any other function in the level's BSL files, for that matter. If it is declared with function scope...


  func another_function
  func another_function