Function Reference: Difference between revisions
Jump to navigation
Jump to search
m
→Function Header
imported>Scrivener07 (Added a 'See Also' headline.) |
imported>Michaelrw |
||
| Line 17: | Line 17: | ||
The "Global" flag indicates a function that does not actually run on an in-game object, and has no "Self" variable. | The "Global" flag indicates a function that does not actually run on an in-game object, and has no "Self" variable. | ||
The "Native" flag indicates a function that does not have a function body, because the function is implemented by the game itself. If you add the native flag to a function the game does not expose, the compiler won't complain, but the game will error at you. The same flag cannot be specified more | The "Native" flag indicates a function that does not have a function body, because the function is implemented by the game itself. If you add the native flag to a function the game does not expose, the compiler won't complain, but the game will error at you. The same flag cannot be specified more than once. | ||
<br><br> | <br><br> | ||
::{|style="border-collapse: separate; border-spacing: 0; border-width: 1px; border-style: solid; border-color: #000; padding: 0" | ::{|style="border-collapse: separate; border-spacing: 0; border-width: 1px; border-style: solid; border-color: #000; padding: 0" | ||