alright so im trying to set a variable to addAction(example ata = "addAction" and then remove it instead of using removeallactions.
theres more to this since im doing it as a test but im stuck on this

Code:
ata = "addAction";
start = {
ata removeAction;
player ata ["Open The Menu", main];
};
 
[] spawn {
hint 'Menu loaded';
sleep 0.1;
call start;
};

main = {
ata removeAction;
player ata ["Firearms", firearms];
player ata ["Close Menu", backtomenu];
};