Koni 1 Posted August 6, 2011 I have this task set to run in a simple .sqf "market" setMarkerTypeLocal "select"; tskfred = player createSimpleTask["Kill Fred"]; tskfred setSimpleTaskDescription["A Local Taliban Leader, code named Fred, is on his way to the Market in Karachinar.<br/><br/>I must move quickly and get to the Market before Fred finishes and leave for the day , ", "Kill Fred", "Fred"]; tskfred setSimpleTaskDestination (getPos market); taskhint ["New Task!\nTake out a Taliban Commander", [1, 1, 1, 1], "taskNew"]; taskhint ["Task Assigned!\nFind and dispose of Fred", [1, 1, 1, 1], "taskCurrent"]; problem I am getting is undefined variable in expression : market line 7 As far as I am aware, it's saying there isn't a marker called market, but there is, this task is set up exactly the same as 2 others I have and they don't throw up an error. Am I missing something really obvious, or is it going a bit fubar on me ? Share this post Link to post Share on other sites
demonized 16 Posted August 6, 2011 tskfred setSimpleTaskDestination ([b]getMarkerPos "market"[/b]); Share this post Link to post Share on other sites
Koni 1 Posted August 6, 2011 Thank you Demonized, I was just being thick and stupid and couldn't see what I had done wrong, the tasks that worked actually had civilians with the same names that I was using for markers, hence why they worked because they we're being getpos'ed on the units and not the markers....... Share this post Link to post Share on other sites