Tile - Custom Function – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Custom Function == File:YlandsTile-21.png...")
 
m (Text replacement - "( \[\[gl\/[0-9]+\|ydef\]\])+" to "")
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:


[[File:YlandsTile-21.png]]
[[File:YlandsTile-21.png]]
=== Availability ===
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]], [[Ylands:Tile Availability - Custom Controller|Custom Controller]]


=== Description ===
=== Description ===
Line 29: Line 33:
=== See Also ===
=== See Also ===


[[Ylands:Tile_-_Custom_Procedure|Custom Procedure]] [[Ylands:Tile_-_Return_Void|Return Void]] [[gl/14|ydef]] [[gl/15|ydef]] [[gl/23|ydef]]
[[Ylands:Tile_-_Custom_Procedure|Custom Procedure]] [[Ylands:Tile_-_Return_Void|Return Void]]




----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]

Latest revision as of 12:12, 30 April 2024

Custom Function

YlandsTile-21.png

Availability

Client, Server, Custom Controller

Description

Custom instruction is a standalone sequence designed to perform a particular task and can be called from anywhere within the script of its parent object.

Notes

  • Any Instruction which returns a value is called expression.
  • Expression definition work in same way as for statement .
  • Instruction definition
  • Defines parameters and contents of custom instruction.
  • It is standalone script block - does not snap with other blocks.
  • To create new custom instruction, simply place new block anywhere in the canvas.
  • Name and parameters of a instruction can be edited via context (right click on block).
  • Parameters work as local variables and can be used inside the custom instruction.
  • Custom instruction can be terminated at any point using return instruction.
  • Instruction call
  • Executes the custom instruction, with defined parameters.
  • Has to be docked as input of another instruction as it would be a variable or literal.
  • Custom instructions of Global Storage are considered global and are available within the scope of whole game script.
  • Custom instructions of Entity (or Game logic) Storage are considered member and are available within the scope of Storage Owner.

See Also

Custom Procedure Return Void