Mowgli 0 Posted April 14, 2003 does anyone know if there's a way to get the position of a user created comment placed on the map during a mission? I know how to create a target marker on the map and move it around with radio commands via a script. But I was looking for something more intuitive for the soldier. What I'm trying to do is allow squads to give waypoints to AI squads va the map. Creating and moving the above marker, and doing getpos and moveto are easy enough. And it works, but its clunky. I'd like to be able to get the position of a map comment someone creates during the mission, and use that for the AI waypoint. Any help appreciated. (If this has already been done, I 'd love to hear about it). Thanks in advance. Share this post Link to post Share on other sites
MP Studio 0 Posted April 14, 2003 I made set for my german scripting tut. "_user_defined #0/0" SetMarkerType "Marker" "_user_defined #0/0" SetMarkerColor "ColorBlue" [Panzer, 2] SetWPPos GetMarkerPos "_user_defined #0/0" ~1.2 go = True The markers are called _user_defined #0/X If you the mission maker sets a marker, it begins with 0/1 and so on Share this post Link to post Share on other sites
walker 0 Posted April 14, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Mowgli @ April 14 2003,14:51)</td></tr><tr><td id="QUOTE">does anyone know if there's a way to get the position of a user created comment placed on the map during a mission? I know how to create a target marker on the map and move it around with radio commands via a script. But I was looking for something more intuitive for the soldier. What I'm trying to do is allow squads to give waypoints to AI squads va the map. Creating and moving the above marker, and doing getpos and moveto are easy enough. And it works, but its clunky. I'd like to be able to get the position of a map comment someone creates during the mission, and use that for the AI waypoint. Any help appreciated. (If this has already been done, I 'd love to hear about it). Thanks in advance.<span id='postcolor'> Hi Mowgli From the Command Ref onMapSingleClick command Operand types:   command: String Compatibility:   Version 1.85 required. Type of returned value:   Nothing Description:   Define action performed when user clicks in map. Command receives:     _pos array position   _units array selected units   _shift,_alt bool key state     If click is processed, command should return true. Example:   onMapSingleClick {"SoldierWB" createUnit [_pos,group player];true} BIS put it in originaly to help with the CoC's Command Engine by spinor. In the Command Engine it is used to insert and edit waypoints and artillery and other Support Requests CAS etc. Thus it allows you the player to command 35 x 12 soldier sections in game as well as make artillery calls. It is used now by most scripters for artillery and support requests. Of particular interest is snYpir's Singel Player and Multi Player Support package which includes artilery, helo rapel and extraction support as well as other functions. I think those two MODs will full fill the majority of mission designers needs. Both are under continuous development. If you want to make a custom script look at how those are made. There are several others working in the same area try OFPEC for more info. You can get to the The Chain of Command's Website by clicking my www link. Kind Regards Walker Share this post Link to post Share on other sites
Mowgli 0 Posted April 14, 2003 Thanks guys! That was EXACTLY what I was looking for. And Walker, that chainofcommand site is awesome. Here I have been re-inventing the wheel for every mission I create for my friends and I.... MANY thanks. I will get alot of use out of CoC. Share this post Link to post Share on other sites