Home   Help Search Login Register  

Author Topic: Group tracking & infosharing scripts?  (Read 1009 times)

0 Members and 2 Guests are viewing this topic.

Offline subroc

  • Members
  • *
Group tracking & infosharing scripts?
« on: 04 Sep 2006, 10:12:13 »
im making a mission where you act as one of the squadleaders in a platoon and your mission is to defend a town.
im using the built in grouptracking system of WGL5 but one of the problems i have:
is there any way of detecting in a script/trigger which of the groups that have lost radiocontact (to get the HQ to send out a searchparty to look for them) rightnow i only get the onscreen message
or are there any other grouptracking scripts that i can use?

also i would like to have some kind of info sharing between the squads (reporting enemy, if fleeing, etc.)
i could settle with that the squads only report to the player (no need for a grouplink type script)
but it would be nice to see detected enemy movements on the map

any ideas?


GavinP

  • Guest
Re: Group tracking & infosharing scripts?
« Reply #1 on: 04 Sep 2006, 23:09:34 »
I just made a MP mission which has markers on the map for the East players where their AI squads are, and if they make contact with the West players, their icon goes green. I'm using the grouplink script as well, so it becomes pretty clear to the East where the West are very quickly.

In addition there's trigger zones which give away the West position for 5 seconds if they stray into that area.


Maybe you could use the same methodology or adapt the idea?

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re: Group tracking & infosharing scripts?
« Reply #2 on: 06 Sep 2006, 16:25:58 »
Ref: the WGL Group tracking system

It relies on each group named in an array having either a wgl radio or one of their party being in a command vehicle.

So, what you could do is run a looping monitoring script, say every minute, 5 minutes  or an even slower loop,
The script would
a) check if each group in Wgl_GmGroups had a radio, if so, store the position of the group leader in an array using the "set" command

eg if the group your check is wgl_GmGroups select 3
then set your custom array Tx_Gmpos select 3 to their position
The next time you loop and check this group, if they have no radio, then simply used their last stored position as the setpos location for your searchparty waypoint

PARTIAL CODE SNIPPET

Quote
_grp = wgl_GmGroups select _a
_pos = getpos leader _grp
 if(({secondaryweapon _x in wgl_radios} count units _grp < 1)&&({typeOf(vehicle _x)in wgl_cmdveh}count units _grp< 1)) then {goto "LOSTCOMMS"}
tx_GmPos set [_a,_pos]
goto "START"

#LOSTCOMMS
_searchpos = tx_gmpos select _a
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123