getObjectArgument: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1= Game 2 Editor | |gr1= Game 2 Editor | ||
| Return name of object argument in mission editor. | | Return name of object argument in mission editor. | ||
{{Informative | Some Old Editor Command}} | {{Informative | Some Old Editor Command}} | ||
| map '''getObjectArgument''' [object, argument] | | map '''getObjectArgument''' [object, argument] | ||
|p1= map: [[Control]] | |p1= map: [[Control]] | ||
|p2= object: [[Object]] | |p2= object: [[Object]] | ||
|p3= argument: [[String]] | |p3= argument: [[String]] | ||
| [[String]] | | [[String]] | ||
Line 28: | Line 28: | ||
([[findDisplay]] 128 [[displayCtrl]] 51) [[evalObjectArgument]] ["_unit_1", "POSITION"] | ([[findDisplay]] 128 [[displayCtrl]] 51) [[evalObjectArgument]] ["_unit_1", "POSITION"] | ||
</code> | </code> | ||
| - | | - | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:41, 18 January 2021
Description
- Description:
- Return name of object argument in mission editor.
- Groups:
- Game 2 Editor
Syntax
- Syntax:
- map getObjectArgument [object, argument]
- Parameters:
- map: Control
- object: Object
- argument: String
- Return Value:
- String
Examples
- Example 1:
// returns string "[1009.0351, 1319.4928]" (findDisplay 128 displayCtrl 51) getObjectArgument ["_unit_1", "POSITION"] // returns array [1009.0351, 1319.4928] (findDisplay 128 displayCtrl 51) evalObjectArgument ["_unit_1", "POSITION"]
Additional Information
- See also:
- -
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