JohnKalo 657 Posted December 24, 2018 Merry Christmas @Far East Lieutenant! Hope you all have a great time. It does indeed not work @Grumpy Old Man It shows this error: Tried changing the condition but errors kept on popping up. How can this be fixed please? Share this post Link to post Share on other sites
pierremgi 4743 Posted December 24, 2018 Looking at your error, it seems you have replaced p1, p2, p3, by getpos P1, getpos P2... to make it work for the setMarkerPos. Now you have a pos (an array) instead of an object (unit player)... So let the script as it was formerly (with p1, p2...) and write: if (!isNull _x#1) then {_x#0 setMarkerPos getPos _x#1} Now, everything should work. _x#1 is something like a unit (p1,p2...) _x#0 is a string as marker name, and all is consistent. Share this post Link to post Share on other sites
JohnKalo 657 Posted December 26, 2018 ^^ did not work either. Whatevs. I will just use the method I had in the first place. Share this post Link to post Share on other sites
Grumpy Old Man 3540 Posted December 28, 2018 On 12/24/2018 at 12:56 PM, JohnKalo said: Merry Christmas @Far East Lieutenant! Hope you all have a great time. It does indeed not work @Grumpy Old Man It shows this error: Tried changing the condition but errors kept on popping up. How can this be fixed please? Guess sqf strikes again, for some reason # demands brackets if another command is involved (if I remember correctly), something like this might fix it: !isNull (_x#1) Cheers Share this post Link to post Share on other sites
Dedmen 2596 Posted December 31, 2018 On 28.12.2018 at 3:10 PM, Grumpy Old Man said: Guess sqf strikes again, for some reason # demands brackets if another command is involved The increased priority of # is the only advantage of it. But uanry command priority is still higher. Share this post Link to post Share on other sites