call: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Dr Eyeball (talk | contribs) m (add: see also) |
||
Line 34: | Line 34: | ||
''[[:Category:Armed Assault|Armed Assault]] syntax:'' | ''[[:Category:Armed Assault|Armed Assault]] syntax:'' | ||
<code>_fAdd <nowiki>=</nowiki> [[compile]] loadFile "add.sqf" | <code>_fAdd <nowiki>=</nowiki> [[compile]] loadFile "add.sqf" | ||
[1,2] call _fAdd</code> |= Example 1 | _result <nowiki>=</nowiki> [1,2] call _fAdd</code> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[call_code|call code]], [[spawn_args|spawn function]], [[spawn|spawn code]], [[compile]], [[preprocessFile]] |= See also | ||
}} | }} |
Revision as of 05:11, 20 April 2008
Description
- Description:
- Executes the function string. Argument(s) (if any) are passed as _this. (Arguments are passed in an array)
- Groups:
- Uncategorised
Syntax
- Syntax:
- Argument(s) call "function string"
- Parameters:
- Argument(s): Any Value - Optional. Argument that is passed to the function in the "_this" variable.
- function string: String - A function body provided directly 'inline' or the String returned from the commands loadFile or preprocessFile.
- Return Value:
- Any Value - The last value given in the function is returned. See the topic Function for more information.
Examples
- Example 1:
- Operation Flashpoint syntax:
_fAdd = loadFile "add.sqf" [1,2] call _fAdd
Armed Assault syntax:_fAdd = compile loadFile "add.sqf" _result = [1,2] call _fAdd
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Resistance version 1.85
- Operation Flashpoint: Resistance: New Scripting Commands
- Operation Flashpoint: Resistance: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP 1.96
- Scripting Commands ArmA
- Command Group: Program Flow