; to get all WPs one can use DASH_Library 2.5https://www.ofpec.com/forum/index.php?topic=36435.0
_array_of_pos=_unit call localize "f_waypoints"
; But it's often more easy to lock current WP and do what u want
_unit lockWP true
; some scripting actions
_unit lockWP false
; about RESISTANCE allies detection:
1) create 2 invis targets of East and West side
(laser type is the best) in a meter near some resistance unit
2) show 'em to him via reveal command
3) wait a second
4) use _unit countEnemy [_tgt] to see who is resistance enemy.
5) the rest of sides are friendly 2 Troska fraction.
6) remove targets
U can use SideFriendly 4 "All" and SideEnemy 4 "Nobody".
However there are only few situations where u realy need to know
RES fraction allies - group link (infoshare) and
... do u know one more implementation?
>AI taking cover script
\DASH_Library 2.5\Test Missions\Examples (part 2).Eden\Examples\Misc\useCover.sqs
(one unit hides from another using some big object like APC)