Home   Help Search Login Register  

Author Topic: Markers  (Read 1238 times)

0 Members and 1 Guest are viewing this topic.

UK_SKA_RULES

  • Guest
Markers
« on: 04 Sep 2002, 01:20:00 »
Okay, what I want to do is I need markers follow groups around on the map..  So I know where all the groups are, and the marker stays untill the last person in the groupd dies..  Anyone know how to do this?

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:Markers
« Reply #1 on: 04 Sep 2002, 01:22:30 »
Simplest way,  make a script and exec it from a trigger, init or WP.  In the script put;

"MarkerName" SetMarkerPos (Getpos Leader GroupName)

I think that might work.

UK_SKA_RULES

  • Guest
Re:Markers
« Reply #2 on: 04 Sep 2002, 01:53:41 »
yeah that kind of works..  The marker shows on the map in the position of the unit, but I need that marker to follow them around on the battlefield, and it keeps following them untill the entire squad is dead

mikeb

  • Guest
Re:Markers
« Reply #3 on: 04 Sep 2002, 01:59:32 »
You keep having to refresh the command so it keeps following them.  If you loop the script then this will do that.

#loop
"MarkerName" SetMarkerPos (Getpos Leader GroupName)
~1
goto "loop"

This will loop it every second.  So the marker will move itself to the new group position every second.

As for "until they're dead".  This line should work until all of them remain and it will show the position of the leader (which will change when the leader is killed).  You can then set a trigger that detects if all the group are dead using the alive command I think.

When they are dead use

"markername" setmarkertype "EMPTY" and the marker will disappear.  You could also use the same trigger to stop looping the script


Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:Markers
« Reply #4 on: 04 Sep 2002, 02:37:59 »
Darn I knew I forgot something, the actual loop part lol.
« Last Edit: 04 Sep 2002, 02:38:13 by [icarus_uk] »