texkaz 33 Posted December 31, 2013 I don't really know where to go with this nor do I have a lot of experience with addaction. Here is situation. You go and free some prisoners and you have two addaction choices. 1st choice: Leave prisoners be and end mission using end1 2nd choice continue with objective and have the four prisoners join your group. You have to make one or another choice and cant go back once the choice has been made. Share this post Link to post Share on other sites
tryteyker 28 Posted December 31, 2013 You'll want to add two actions to whatever object activates what you want to do. It'll be called object further down. First, add the two addActions like this: free = object addAction ["Free prisoners","freeprisoners.sqf"]; leave = object addAction ["Leave prisoners","leaveprisoners.sqf"]; There's a bunch of extra options that you can read about here if you want but they're not required for this. So since you only want one option to be usable, you'll have to remove either action in the opposite script. For instance "freeprisoners.sqf" could look like this: _object = _this select 0; // Object that the unit is attached to. _caller = _this select 1; // Unit that calls addAction. _ID = _this select 2; // The ID of the action that _caller just called. _object removeAction _ID; // Removes this action (in this case, "Free Prisoners"); _object removeAction leave; // Removes second option available. If the value you assigned as handle (leave in this case) does not work, try to use 1 instead. It's 0 index-based. endMission "END1"; Use removeAction to remove actions that you've assigned. Make sure each of them has a handle. Share this post Link to post Share on other sites