Home   Help Search Login Register  

Author Topic: onMapSingleClick ???  (Read 482 times)

0 Members and 2 Guests are viewing this topic.

froggy333

  • Guest
onMapSingleClick ???
« on: 22 Jul 2004, 20:26:45 »
Hi, im making a mission and want the commander to be able to click on the map and get a helicopter to come to the point he clicks as a sort of dynamic extraction BUT i can't figure out how onMapSingleClick works as the ref manual confused me????

Thanks
Chris

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:onMapSingleClick ???
« Reply #1 on: 22 Jul 2004, 20:42:37 »
Don't worry, it confuses everybody.

I'm not sufficiently expert to be able to give a full explanation.   But I can suggest a good hunt of the forums - it has been well explained - and I can also one working example from one of my own missions, which might help.


#relevant bit from a script
; CSM is a group
; gl_CSM is a gamelogic although I can't remember exactly what its for

tank1C sidechat "CSM, stand by for movement orders."

~1

"CSMmarker" SetMarkerType "Start"; "CSMmarker" setMarkerColor "ColorGreen"

? count units CSM == 0:goto "dead"

leader CSM sideChat "CSM standing by."

onMap=false

onMapSingleClick {CSM move _pos; leader CSM sidechat "CSM Moving on"; gl_CSM setPos [_pos select 0, _pos select 1,0]; onMap=true; onMapSingleClick {}}

@onMap

#dead
etc etc
Plenty of reviewed ArmA missions for you to play