compileFinal

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 0.56
  Effects 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:
compilecallspawn

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

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