Ok:
If you wanted to check whether a unit has an action, then i would do the following. Put this piece of code into the same onactivation or line of script as the addaction is:
Gotaction=true
So it would look like this:
Unit addaction [FORMAT["Bury Bomb"],"bury.sqs"];gotaction=true
Then, when you want to check whether or not the unit has been given the action already, do this:
?gotaction:goto "Skipgiveaction"
But if the player has been given the action, then he uses it and it disappears, he wont get it. If you want him to get the action even after hes used it origanally, and the script has removed it from him, then put this line of code (WTF!!!
):
gotaction=false
Put this after the removeaction bury command.
As i said i dont know the ins and outs of your mission so this may or may not work.
8)PEACE