compileFinal

From Bohemia Interactive Community
Jump to: navigation, search
Introduced in ARMA 3  version 0.56Effects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
ARMA 3
Version:
0.56

Description

Description:
Compile expression and makes it final, preventing it from:

Syntax

Syntax:
Code = compileFinal expression
Parameters:
expression: String
Return Value:
Code

Examples

Example 1:
myCode = compileFinal "a = a + 1"; call myCode;
//--- Repeated compile won't have any effect myCode = compileFinal "a = a + 2";
//--- Duplicate code will be final as well myDuplicateCode = myCode;

Additional Information

Multiplayer:
-
See also:
compile, call, spawn

Notes

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Posted on August 14, 2013
AgentRev
When broadcasting a compileFinal'ed variable using publicVariable or its variants, the variable also becomes final on the other client(s) and/or the server. Also, compileFinal does not prevent event handlers from being removed or overwritten.

Bottom Section