Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script
return
Category:
Script
Since engine version:
4.6.5.0 CP
Description
Ends the current function and returns a value to the caller.
Syntax
void
return (
Any
retval);
Parameter
retval:
Return value
Example
private
func
Division( dividend, divisor ) {
return
( dividend / divisor ); }
Divides a by b and returns the result.
jwk, April 2002
Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script