Hi,
Let's say that you have a soldier called 's1' with waypoints and you dont want him to move before you give him the order, you can do it like that:
s1 lockWP true
player addAction ["Resume WP", "resumeWP.sqs"]
and in the 'resumeWP.sqs'
; --------resumeWP.sqs ----------
s1 lockWP false
; and if you want to remove the action from the menu
; OFP pass a reference of the action ID as param 3
player removeAction (_this select 2)
exit
; ---------end script--------------
that's it
Hope it helps
AliMag