SetOutputInt()

From ElectronicWar

Jump to: navigation, search
Function information for setOutputInt()
Function setOutputInt()
Parameters setOutputInt(int)
API Challenge
Cost $0
Level N/A
CPU Usage 0
Description Passes the parameter (an integer or an integer variable) to the challenge system. This is one of the functions used to end challenges (along with setOutputString() and setOutputFloat()) and as such will only appear at the end of a challenge program.


[edit] Example 1

If the challenge were to output the integer 5 the script would be:

setOutputInt(5);

[edit] Example 2

If the challenge were to output an integer variable, containing the number 5, the script would be:

int i = 5;
setOutputInt(i);
Personal tools