Mike31 0 Posted February 20, 2007 Can any one help me with a script problem. When I load my mission up; a error pops up on the top right corner saying this: http://img88.imageshack.us/img88....MG] I found what the error what pointing to but I dont know why it should give me an error. This is a script from OFP I am just converting it to ArmA. Here is the a potion of the script. #mstart ~2 _lt = leader _group _lt sideChat "Roger, where to?" onMapSingleClick {"marker1" setMarkerPos _pos} _mark = getMarkerPos "marker1" select 0 ? _mark == _check: goto "mstart" _group move getMarkerPos "marker1" _lt sideChat "Moving on" onMapSingleClick {} destset = true @destset _dest setMarkerType "destroy" _dest setMarkerPos getMarkerPos "marker1" Share this post Link to post Share on other sites
hoz 0 Posted February 20, 2007 moving to mission editing Share this post Link to post Share on other sites
SenseleSS Violence 0 Posted February 20, 2007 remove the {} because ArmA thinks code is in there but the command onMapSingleClick wants a string... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">onMapSingleClick "marker1 setMarkerPos _pos" but then again, I'm havin problems myself so I'm probably wrong. Share this post Link to post Share on other sites
Mike31 0 Posted February 20, 2007 The error is gone, but the units still don't move to ware I did the map click. If I gave you my mission would it be much better for you to see what the problem is?? Share this post Link to post Share on other sites
Mike31 0 Posted February 21, 2007 So has any found out how to fix the onMapSingleClick "marker1 setMarkerPos _pos", the AI dont go to the marker point for some reason. Share this post Link to post Share on other sites
charonos 0 Posted February 21, 2007 What is ?: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ? _mark == _check: goto "mstart" Maybe this condition is met before the move command can be executed, because you jump to "mstart" before. Without your full script, we can't help you. Share this post Link to post Share on other sites
Mike31 0 Posted February 22, 2007 http://rapidshare.com/files/17639473/Test_mission.zip.html There is my mission, The action.sqs is were I believe you will find what I am talking about. Share this post Link to post Share on other sites
SenseleSS Violence 0 Posted February 22, 2007 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">onMapSingleClick """marker1"" setMarkerPos _pos" also change the {} with "" a few line lower. also find those OFP_MARKER_Destroy in the mission.sqm and change that line to just: Destroy. cheeers Share this post Link to post Share on other sites