Home   Help Search Login Register  

Author Topic: Random position and placing marker  (Read 860 times)

0 Members and 1 Guest are viewing this topic.

TERA_Forrest

  • Guest
Random position and placing marker
« on: 30 May 2005, 11:07:05 »
What I'm trying to do is have three different places that a hostage and his killers could be placed randomly.  When the player gets intel via "addaction" then a marker will be placed on the spot that the hostage is at.  How can I do this?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Random position and placing marker
« Reply #1 on: 30 May 2005, 11:11:44 »
Create a marker at two locations and place the hostage at the third.   Make them type empty so that they are invisible.     Group (or is it Synchro?) the markers to the hostage, who will appear randomly at either his start position or one of the markers.

Create your little camp and guards anywhere.  Use setPos commands (relative to the hostage) to make them appear where the the hostage is.

When the marker is to appear on the map, setPos one of the markers  you have already used to the hostage's location and use setMarker commands to make it appear as you want.    (Set the text in the mission editor, it's invisible at the start so nobody can see it.)
Plenty of reviewed ArmA missions for you to play

voodzia

  • Guest
Re:Random position and placing marker
« Reply #2 on: 30 May 2005, 13:44:52 »
Quote
Group (or is it Synchro?) the markers to the hostage, who will appear randomly at either his start position or one of the markers.
It's group ;) and it works great.

CrashnBurn

  • Guest
Re:Random position and placing marker
« Reply #3 on: 30 May 2005, 15:29:07 »
For anyone who has not grouped a marker to a unit: When you click the group button the markers disappear from view. It may be easiest to place the unit and marker next to each other, group them, then move them into position on the map. Otherwise you'll have to hunt for the invisible marker. Not hard to do on a mission in early stages of development, but things can get very crowded at later stages.

Offline 456820

  • Contributing Member
  • **
Re:Random position and placing marker
« Reply #4 on: 30 May 2005, 15:49:00 »
what i do is put marker wherever you want it and the same with the unit and then press f6 so you can see the markers and put the cursorover it then press f2 and drag the line to the unit becuase you had the cursor in the right place it should still be

TERA_Forrest

  • Guest
Re:Random position and placing marker
« Reply #5 on: 30 May 2005, 20:22:22 »
works great, thanks ;)