Home   Help Search Login Register  

Author Topic: OnMapSingleClick - Difference in ArmA?  (Read 4078 times)

0 Members and 1 Guest are viewing this topic.

Offline mathias_eichinger

  • Missions Depot
  • Administrator
  • *****
  • I'm a llama!
Re: OnMapSingleClick - Difference in ArmA?
« Reply #15 on: 31 Jul 2007, 03:02:11 »
Hi, I am having the same problems with onmapsingleclick, but I can't deduce a solution from this thread, maybe I am blind. :dry:

What I am trying to do is to dynamically command a heli around the map.

onMapSingleClick "Luft1 move _pos;  onMapSingleClick {}";

works, but gives me the infamous "type code, expected string" error message.


Where is the fault?

Cheers, Mathias

Offline firecontrol

  • Members
  • *
Re: OnMapSingleClick - Difference in ArmA?
« Reply #16 on: 31 Jul 2007, 07:37:50 »
onMapSingleClick "Luft1 move _pos; onMapSingleClick """"";

???
That's 5 of the " quotation marks at the end, btw.
Just a shot in the dark here. That example in the wiki may not work, as onMapSingleClick "" is used to disable it, not {}.

Offline mathias_eichinger

  • Missions Depot
  • Administrator
  • *****
  • I'm a llama!
Re: OnMapSingleClick - Difference in ArmA?
« Reply #17 on: 31 Jul 2007, 12:29:41 »
Wow, that's it, the error is gone!

Looks like you are really accurate when shooting in the dark.  :D

Many thanks,

Mathias