I have an addaction in my fn_selfActions that triggers a script of... more addactions.
It all works well since once you move all but the fn_selfActions added actions are removed until said action is triggered again. These actions in turn run some simple hint menus.
My issue, which isnt a huge issue since you would only be trolling yourself by doing it, is. The addaction from fn_selfActions can be activated over and over spamming the action menus with duplicatesas long as you dont move.
Just being picky, i am looking for a way to either remove the original action menu once activated in turn revealing the other actions without having to scroll again, resetting once other actions are removed. or
Disable the original action once used until others are removed.
This is what im working with.
fn_selfActions lines are:
//rules start if(speed player <= 1) then { if (s_rules < 0) then { s_rules = player addaction[("<t color=""#c70000"">" + ("Rules and Info") +"</t>"),"custom\rules\rules_init.sqf","",-3,false,false,"",""]; }; } else { player removeAction s_rules; s_rules = -1; }; //rules endworks if im not walking,
the init
if(speed player <= 0) then { _isDirty = true; if(_isDirty) then { _rule_set1 = player addAction["PVP","custom\rules\pvp.sqf","",-5,false,false,"",""]; _rule_set2 = player addAction["Safezones","custom\rules\safezone.sqf","",-6,false,false,"",""]; _rule_set3 = player addAction["Chat","custom\rules\chat.sqf","",-7,false,false,"",""]; _rule_set4 = player addAction["Building","custom\rules\building.sqf","",-8,false,false,"",""]; _rule_set5 = player addAction["Cheating","custom\rules\cheating.sqf","",-9,false,false,"",""]; _rule_set6 = player addAction["Thanks","custom\rules\thanks.sqf","",-12,false,true,"",""]; _rule_set7 = player addAction["Ts3","custom\rules\ts3.sqf","",-10,false,false,"",""]; _rule_set8 = player addAction["Reporting","custom\rules\report.sqf","",-11,false,false,"",""]; waitUntil { speed player > 0 }; player removeAction _rule_set1; player removeAction _rule_set2; player removeAction _rule_set3; player removeAction _rule_set4; player removeAction _rule_set5; player removeAction _rule_set6; player removeAction _rule_set7; player removeAction _rule_set8; _rule_set1 = -1; _rule_set2 = -1; _rule_set3 = -1; _rule_set4 = -1; _rule_set5 = -1; _rule_set6 = -1; _rule_set7 = -1; _rule_set8 = -1; }; }; }; };
I have looked around google, the wiki, and a few forums and tried a few things but no luck.
I'm sure i have looked at it in my searches and it just went over my head. Pardon my noobishness =]
Any info or suggestions?
Any help would be great.