Jump to content
Sign in to follow this  
panicsferd

how to remove a custom action after it was enabled.

Recommended Posts

I'm not too sure how to do this but currently in my mission I have it set where there is a custom men for the player when he reaches a radio tower for them to disable it and what I would like to know how to do is once the player activates the custom action (as it is now it still keeps saying disable radio tower, even when you press it) I want it to disappear so it looks like it was activated.

right now on my trigger that is near the tower I have the coding like this:

p1 addAction ["Disable Radio Tower",{tower1 setdamage 1}];

^as you can see I have it set to kill a unit named tower1 (which is on the map far away from the action), but when I do activate the action it does go though but it still displays the action "Disable Radio Tower".

Share this post


Link to post
Share on other sites
p1 addAction ["Disable Radio Tower",{tower1 setdamage 1; p1 removeAction (_this select 2);}];

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×