Home   Help Search Login Register  

Author Topic: Tracking Marker  (Read 441 times)

0 Members and 1 Guest are viewing this topic.

Offline OFPWiZard

  • Members
  • *
Tracking Marker
« on: 11 Feb 2005, 18:15:07 »
Name says it all...

I would like to know how i could create a marker (Dot) to follow an enemy if your person is within a distance of 200.

It would have multiple enemies in which the Dots would be created.

So it would be triggered on every enemy in a certain poistion (after you call for statellite intelligence)... so the script would like like


--------------------------------
? ((_unit distance =< 200) _enemies)) : goTo begin
? ((_unit distance > 200) _enemies)) : goTo over

#begin
getMarkerPos _markerFULL \\ A marker that is visiable, maybe Red
_marker setPos getPos _enemies... etc.

? ((_unit distance =< 200) _enemies)) : goTo begin
? ((_unit distance > 200) _enemies)) : goTo over

#over
getMarkerPos _markerEmepty  \\ A marker that isn't visiable
_marker setPos getPos _enemies
goTo begin
--------------------------------

It might be a lot more complex but i would like to know if it is possible.

Please and thank you if you can help.



Offline MachoMan

  • Honoured
  • Former Staff
  • ****
  • KISS, Keep it Simple Stupid
Re:Tracking Marker
« Reply #1 on: 11 Feb 2005, 18:48:35 »
Use a script like u made, then use a trigger which launches it on activation. Set it east/west present, repeatedly, etc. That should make it work.
Get those missions out there you morons!

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Tracking Marker
« Reply #2 on: 11 Feb 2005, 18:54:52 »
setPos doea not work with markers, you need to use setMarkerPos.

Here is a n extract from a script I am using to de-bug a mission at the moment.  It enables me to follow all the groups on the map

#loop
.
.
.
.
"ei0" setMarkerPos getpos (leader e_Infantry_0Grp)
"ei1" setMarkerPos getpos (leader e_Infantry_1Grp)
.
.
.

~2


goto"loop"
« Last Edit: 11 Feb 2005, 20:39:36 by THobson »

Offline XCess

  • Former Staff
  • ****
Re:Tracking Marker
« Reply #3 on: 11 Feb 2005, 18:57:53 »
Yeah, you can only use editor defined markers as far as I know. The thoght of using a Rsc popped into my head for a second but you can't set it's pos on the map.

*edit* only global strings can be used for markersa I've found too  :'(
« Last Edit: 11 Feb 2005, 18:58:27 by XCess »