Home   Help Search Login Register  

Author Topic: onmapsingleclick confusion  (Read 788 times)

0 Members and 2 Guests are viewing this topic.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
onmapsingleclick confusion
« on: 22 Feb 2003, 18:20:17 »
I'm commanding a tank (well it seemed like a good idea at the time) and I want to be able to order a loon from some other group to go to a particular place on the map.   All well and good, I have figured that out.

I'm using a trigger, activation Radio Alpha:-

on activation:  onMapSingleClick {leader CSM doMove _pos}

The problem is that my driver thinks the single click is for him and he sets off for the same place too. ;D

How do you prevent this?  

Thanks.
Plenty of reviewed ArmA missions for you to play

walker

  • Guest
Re:onmapsingleclick confusion
« Reply #1 on: 22 Feb 2003, 21:09:41 »
Hi

Use a modifier key shift or alt so both it and the mouse button must be pressed. I seem to remeber Suma answering this question on the official forum some time back there is another method as well I think.

I have not noticed this in CE V1.22 and it makes a massive amount of use of this function. Have you got your tank driver selected at the time?

Kind Regards walker
« Last Edit: 22 Feb 2003, 21:10:15 by walker »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:onmapsingleclick confusion
« Reply #2 on: 23 Feb 2003, 02:22:23 »
Thanks, Walker.     No, the tank driver is not selected.   I saw Suma's post but he doesn't give the mechanics - how do you specify using alt-clickor ctrl-click?
Plenty of reviewed ArmA missions for you to play

walker

  • Guest
Re:onmapsingleclick confusion
« Reply #3 on: 23 Feb 2003, 21:31:35 »
Hi

Code: [Select]
onMapSingleClick command
Operand types:
    command: String
Compatibility:
    Version 1.85 required.
Type of returned value:
    Nothing
Description:
    Define action performed when user clicks in map. Command receives:
   
    _pos array position
    _units array selected units
    _shift,_alt bool key state
   
    If click is processed, command should return true.

Example:
    onMapSingleClick {"SoldierWB" createUnit [_pos,group player];true}

At the end where it says true _shift or _alt instead perhaps?

Kind Regards walker