Actually yeah, looking at it again your syntax is all wrong.
First of all you're mixing SQF and SQS - SQF would error out because of the missing semi-columns on lines 3 and 4 (counting empty lines too) and with SQS semi-columns shouldn't be there.
Secondly you should consider either using local variables or putting some tag in front of the global ones (DAZA_posmark1 for example) - this would be to avoid conflicts with addons.
And thirdly your usage of the position variables is incorrect.
On lines 6 and 7 you're getting a position of a position. It may not error out but it's completely obsolete.
Lines 8 and 9 should error out for sure - you've provided only one 1 coordinate which is not even a number but an array, because this is how the game interprets it:
Code:
unit1 setpos [[3492.5684,33.443855,4517.2529]];
This would be the fixed code:
SQF (run with execVM "script.sqf"):
Code:
_grp = createGroup east;
DAZA_posmark1=[3492.5684,33.443855,4517.2529];
DAZA_posmark2=[3372.3352,16.982912,4395.9561];
DAZA_unit1= "RU_Soldier_MG" createunit [position posmark1, _grp];
DAZA_unit2= "RU_Soldier_Marskman" createunit [position posmark2, _grp];
DAZA_unit1 setPos DAZA_posmark1;
DAZA_unit2 setpos DAZA_posmark2;
SQS (run with exec "script.sqs"):
Code:
_grp = createGroup east
DAZA_posmark1=[3492.5684,33.443855,4517.2529]
DAZA_posmark2=[3372.3352,16.982912,4395.9561]
DAZA_unit1= "RU_Soldier_MG" createunit [position posmark1, _grp]
DAZA_unit2= "RU_Soldier_Marskman" createunit [position posmark2, _grp]
DAZA_unit1 setPos DAZA_posmark1
DAZA_unit2 setpos DAZA_posmark2
exit