custom-building-function
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
custom-building-function [2022/04/29 20:26] – minotorious | custom-building-function [2022/04/30 19:23] (current) – minotorious | ||
---|---|---|---|
Line 23: | Line 23: | ||
All [[api/ | All [[api/ | ||
- | '' | + | '' |
- | '' | + | '' |
- | '' | + | '' |
+ | |||
+ | For example below we set up a function that upon activation logs its properties and upon reload executes a back-call to its activation function. | ||
<code lua> | <code lua> | ||
+ | function MY_BUILDING_FUNCTION: | ||
+ | mod: | ||
+ | mod: | ||
+ | mod: | ||
+ | | ||
+ | return true | ||
+ | end | ||
+ | function MY_BUILDING_FUNCTION: | ||
+ | self: | ||
+ | end | ||
</ | </ | ||
And finally we register our custom [[api/ | And finally we register our custom [[api/ |
custom-building-function.txt · Last modified: 2022/04/30 19:23 by minotorious