scripting help (removeaction)

2 posts in this topic

hey there!

i added an addaction for an object in mission sqm in the following format:


  init="this addaction [""DO something"",""script_to_execute.sqf""] call BIS_fnc_MP";"

(yeah i know remoteexec is preferred over fnc_mp,but it works this way)

how can i remove that action as soon as the "button was pressed"?

i tried removing the action by player removeaction but it wont happen.any tips?




the friendly sniper from your neighbourhood


Edited by B.A.D.

Share this post

Link to post
Share on other sites

managed to do it by putting the function name inside the init line in mission.sqm.

function_name= this addaction ["blablabla...

 then inside the sqf thats called in the init line:

_vehname = _this select 0;
_fnc_name= _this select 2;
_vehname removeAction _fnc_name;

for everyone running into the same problems.trying to be helpful omg^^



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.