tratsh 10 Posted November 22, 2013 hi guys, I was looking at many post about that question but seems like none of them worked for me . Mainly coz they a designed for arma and the setdir command is not available on flashpoint. This is simple i want 4 marker (dot one) follow 4 ai unit on the map I want those marker to be seen by any player on multiplayer server ( abit like in cti but without team assignation like alpha charlie...) and if possible i want a marker to turn red when the attached unit die . any working script ? Share this post Link to post Share on other sites
nikiller 18 Posted November 22, 2013 (edited) hi, gps_marker.sqs ;******************************************************* ;GPS Marker Script by Nikiller v0.9b ;Set pos marker to unit and turns red when the unit dies ;contact: nikillerofp@hotmail.fr ;[unitName,"markerName"] exec scriptName.sqs ;******************************************************* ? !(local player): exit _u = _this select 0 _m = _this select 1 _d=0.2 _l="l" #l ~_d ? alive _u: _m setMarkerPos getPos vehicle _u; goto _l ~0.5 _m setMarkerColor "colorRed" exit Just a suggestion: the script could be more elaborated and tracks if the unit is injured, can walk, have his hands hit and use a specific marker type nor color to each states. ATM, it just track if the unit is dead. Say me if you want something a bit more complete. cya. Nikiller. Edited November 24, 2013 by Nikiller error Share this post Link to post Share on other sites
tratsh 10 Posted November 23, 2013 Hi Nikiller, thanks for your help and script, But i can't make this work ( dunno why ) i named the sqs file marker / i add a unit called D6 / i add a blue dot marker called M1 / i add a trigger : detected by west- (once and repeatably i tried both) - condition this - on activation {D6,M1} exec "marker.sqs" But when i preview in the editor the marker is not following the unit and is just at the place where i putted it . I tried to launch the mission on multiplayer mode it's not working too... I m stuck, dunno what to do . Share this post Link to post Share on other sites
nikiller 18 Posted November 23, 2013 (edited) hi, {D6,M1} exec "marker.sqs" is wrong, the correct synthax is [D6,M1] exec "marker.sqs" EDIT: watch out with the detected by trigger in MP since it's fired individually on each computer which result in strange result sometimes. The way to go is to use publicVariable to be sure that the info is correctly broadcasted between every computers. cya. Nikiller. Edited November 23, 2013 by Nikiller Share this post Link to post Share on other sites
tratsh 10 Posted November 23, 2013 I just use that syntax coz on my mac there is not the right key . but I typed it correctly Share this post Link to post Share on other sites
nikiller 18 Posted November 24, 2013 hi, I just use that syntax coz on my mac there is not the right key .but I typed it correctly My bad I didn't tested my script, the correct synthax is [D6,"M1"] exec "marker.sqs" the marker name is a string. I tested and it works. cya. Nikiller. Share this post Link to post Share on other sites
tratsh 10 Posted November 24, 2013 Perfect buddy , this is working for me too . thanks for your time Share this post Link to post Share on other sites
tratsh 10 Posted December 2, 2013 do you know how to make it work with revive script ? coz each time a player died the marker stop moving ... and do not follow him again when he is revived. Share this post Link to post Share on other sites
nikiller 18 Posted December 2, 2013 hi, do you know how to make it work with revive script ?coz each time a player died the marker stop moving ... and do not follow him again when he is revived. Use this script and execute your marker.sqs in the init_respawn.sqs cya. Nikiller. Share this post Link to post Share on other sites