Difference between revisions of "onMapSingleClick"
Jump to navigation
Jump to search
m |
m (Fixed notes, examples, desc) |
||
Line 2: | Line 2: | ||
[[Category:Scripting Commands OFP 1.96|ONMAPSINGLECLICK]] | [[Category:Scripting Commands OFP 1.96|ONMAPSINGLECLICK]] | ||
[[Category:Scripting Commands ArmA|ONMAPSINGLECLICK]] | [[Category:Scripting Commands ArmA|ONMAPSINGLECLICK]] | ||
+ | {{Command|= Comments | ||
+ | ____________________________________________________________________________________________ | ||
+ | | ofpr |= Game name | ||
− | + | |1.85|= Game version | |
+ | ____________________________________________________________________________________________ | ||
− | + | | Define action performed when user clicks in map. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | Define action performed when user clicks in map. | ||
Command receives: | Command receives: | ||
Line 29: | Line 18: | ||
* _shift, _alt [[Boolean]] key state | * _shift, _alt [[Boolean]] key state | ||
− | If click is processed, command should return [[true]]. | + | If click is processed, command should return [[true]]. |= |
+ | ____________________________________________________________________________________________ | ||
+ | |||
+ | | '''onMapSingleClick''' command |= Syntax | ||
+ | |||
+ | |p1= command: [[String]] |= Parameter 1 | ||
+ | |||
+ | | [[Nothing]] |= Return value | ||
+ | ____________________________________________________________________________________________ | ||
+ | | x1 = <code>onMapSingleClick {"SoldierWB" [[createUnit]] [_pos, [[group]] [[player]]]; [[true]]}</code> |= Example 1 | ||
+ | | x2 = <code>onMapSingleClick {grp1 [[move]] _pos; [[leader]] grp1 [[sideChat]] "Moving"; variable1 <nowiki>=</nowiki> [[true]]; onMapSingleClick <nowiki>{}}</nowiki></code> | = Example 2 | ||
+ | | |= See also | ||
− | + | }} | |
− | + | <h3 style="display:none">Notes</h3> | |
+ | <dl class="command_description"> | ||
+ | <!-- Note Section BEGIN --> | ||
− | + | <!-- Note Section END --> | |
+ | </dl> |
Revision as of 02:13, 4 August 2006
Description
- Description:
- Define action performed when user clicks in map. Command receives: If click is processed, command should return true.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
onMapSingleClick {"SoldierWB" createUnit [_pos, group player]; true}
- Example 2:
onMapSingleClick {grp1 move _pos; leader grp1 sideChat "Moving"; variable1 = true; onMapSingleClick {}}
Additional Information
- See also:
- See also needed
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