celery 8 Posted September 27, 2007 How can I remove all actions created with the addAction command in the action menu, preferably without specifying each and every one of them with their own remove commands? Share this post Link to post Share on other sites
Doolittle 0 Posted September 28, 2007 You have to remove one at a time. They start at index 0. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_lastindex = _this addaction ["", ""]; for [{_i = 0}, {_i <= _lastindex}, {_i = _i + 1}] do { _this removeaction _i; }; Doolittle Share this post Link to post Share on other sites
subliminalss 12 Posted August 14, 2011 Legend i just spent hours deciphering this whoop I used this if anyone want for future reference. _lastindex = player addaction ["", ""]; for [{_i = 0}, {_i <= _lastindex}, {_i = _i + 1}] do {player removeaction _i; hint format ["ActionID :%1",_i]}; Share this post Link to post Share on other sites