Home   Help Search Login Register  

Author Topic: Another MapClick Problem  (Read 971 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Another MapClick Problem
« on: 19 Dec 2005, 17:41:44 »
Hi I am using a script that allows me to order men to go where I want them using mapclick. my problem is this works fine and the script waits for me to click the map (Which is what I want) but it only waits the 1st time I use the script. If I call on it a second time it does not wait for me to click the map. Why is it doing this and am I using the wrong map click? Here is the script.

_____________________________________
Hint "Click Map For Location Request"
onMapSingleClick {Marker setPos _pos; variable1=true; onMapSingleClick {}}
@variable1
player sidechat "Roger that. Machine Gunner moving out."
~1
Soldier domove [getpos Marker select 0,getpos Marker select 1,0]

____________________________________

Thanks for the help
"Everyone dies so deal with it and move on"

                                                      ME

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Another MapClick Problem
« Reply #1 on: 19 Dec 2005, 18:42:03 »
Try adding the following at the end of the script

Code: [Select]
variable1=false
So that the next time the script is run it waits at the
@ variable1 line

EDIT:
In fact you could put the line anywhere after the @ line or before the onMapSingleClick line

« Last Edit: 19 Dec 2005, 21:07:50 by THobson »

Offline ONoSixIsDown

  • Members
  • *
Re:Another MapClick Problem
« Reply #2 on: 19 Dec 2005, 20:48:31 »
small question concerning the above script.  

to be precise, its about the line that reads as follow:

Soldier domove [getpos Marker select 0,getpos Marker select 1,0]
---------------------------------------------------------------------------

how would it need to be to give a group the domove command? I've tried using the group's name (group1) in place of "Soldier" but i get an error message.

CRIMSON REIGN COMMING..... eventually :/

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Another MapClick Problem
« Reply #3 on: 20 Dec 2005, 00:22:38 »
Read the comref.   Always read the comref.    ;)

domove, as you've discovered, does not take a group as an argument.   The equivalent command for a group is move.
Plenty of reviewed ArmA missions for you to play