Jump to content
Sign in to follow this  
mrmax

Tracking icon markers?

Recommended Posts

I have a great script for tracking units.  The script uses a unit

marker that shows up on the map.

Question:  Instead of using normal markers, is there a way to

call the unit specific markers shown in cadet mode?

Meaning a tank marker, a jeep marker, helo marker, etc.

Does anyone know how to call those markers in a script?

*************

The below script was provided by Karrillion at OFPEC...

I have not modified it.   You can modify this script to track

1 unit, all units, units of just one side, or a group, etc.  

*************

;VclGps.sqs

;To use this script, give unit name, ie: M1A1 tank named:

;WTank1. Now create a marker for the tank, name marker:

;MKWtank1. Do this for each unit you want to track.

#Init

Hint "UPDATING GPS INFORMATION.  STANDBY."

_WVcls=[WTank1, "MKWTank1",Wtank2,"MKWTank2",WJeep1,"MKWJeep1"]

_EVcls=[ETank1, "MKETank1",Etank2,"MKETank2",EJeep1,"MKEJeep1"]

_VclList=_WVcls+_EVcls

#LoopInit

_g=0

_count=(Count _VclList)

#LoopStart

_vcl=(_VclList Select _g)

_g=_g+1

_vclmarker=(_vclList Select _g)

_vclmarker SetMarkerPos (Getpos _vcl)

_g=_g+1

?(_g>=_count):Goto "LoopExit"

Goto "LoopStart"

#LoopExit

~2

Hint "ALL VEHICLE LOCATIONS UPDATED VIA GPS TRACKER."

Exit

Share this post


Link to post
Share on other sites

I dont have an answer to Ur question but I hope you dont mind if I add some questions about markers smile.gif

Is there any way to move markers without a script and without moving it to another marker? I have tried with setpos but I couldnt get it to work.

Do the markers U add on the map ingame get a name?

If I place a marker on the map while playing, is there a way to move something to that marker?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×