Announcement

Collapse
No announcement yet.

kevb0's GroupTracker Script

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • kevb0's GroupTracker Script

    This is the GroupTracker script as used at ShackTac, courtesy of kevb0. (kevb0, be sure to correct anything I get wrong.)

    The script files listed below are those included with kevb0's OpHomeWreckers.Sara, so unpack and refer to that mission to see how everything ties together.


    markers.sqs (goes in your mission directory):
    Code:
    #start
    "FT1" setmarkerpos getpos leader Fireteam1
    "FT2" setmarkerpos getpos leader Fireteam2
    "FT3" setmarkerpos getpos leader Fireteam3
    "FT4" setmarkerpos getpos leader Fireteam4
    "SL1" setmarkerpos getpos leader Squadleader1
    "SL2" setmarkerpos getpos leader Squadleader2
    ~3 
    goto "start"

    hidemarkers.sqs (goes in your mission directory):
    Code:
    ? side player == east : goto "east"
    ? side player == west : goto "west"
    ? side player == resistance : goto "guer"
    exit
    
    #east
    "FT1" setmarkertype "empty"
    "FT2" setmarkertype "empty"
    "FT3" setmarkertype "empty"
    "FT4" setmarkertype "empty"
    "SL1" setmarkertype "empty"
    "SL2" setmarkertype "empty"
    "unknown" setmarkertype "empty"
    "unknown_1" setmarkertype "empty"
    "unknown_2" setmarkertype "empty"
    "unknown_3" setmarkertype "empty"
    "unknown_4" setmarkertype "empty"
    exit
    
    #west
    "FT1" setmarkertype "empty"
    "FT2" setmarkertype "empty"
    "FT3" setmarkertype "empty"
    "FT4" setmarkertype "empty"
    "SL1" setmarkertype "empty"
    "SL2" setmarkertype "empty"
    "shilka2" setmarkertype "empty"
    exit
    
    #guer
    "shilka2" setmarkertype "empty"
    exit

    Add to your mission's init.sqs:
    Code:
    [] exec "markers.sqs"
    [] exec "hidemarkers.sqs"

    hidemarkers.sqs isn't necessary for the script to work, but it's needed if you have multiple playable factions in your mission and you want to hide a team's markers from the other team(s).


    In your mission, create your various groups and identify each uniquely using

    Code:
    groupname = group this;
    in each group leader's Init. The groupnames must match the groupnames listed in your markers.sqs.

    Create a marker for each group you'd like to track. Give each marker a name that corresponds to its listing in your markers.sqs (and in your hidemarkers.sqs, if you choose to use it).

    That's it. The script will associate the markers with the groups, and it'll update the location of each marker every three seconds to match the location of each respective group leader. Very cool.

  • #2
    Re: kevb0's GroupTracker Script

    I got this set up last night in my two missions at the squad level. Any player can now see the position of the Squad Leaders (and the Platoon Leader, if there is one) at any time on the map. The next step is to take the time to break this down to the fireteam level.

    I can see how the friendly green arrows showing on the map would be unecessary when using this script. Since each person would know the location of his Fireteam Leader and/or Squad Leader, the need for the green arrows would be moot.

    Comment

    Connect

    Collapse

    TeamSpeak 3 Server

    Collapse

    Advertisement

    Collapse

    Twitter Feed

    Collapse

    Working...
    X