Jump to content
Sign in to follow this  
blacknite3d

RemoveAction issue

Recommended Posts

I do not know what I am doing wrong here, I have set in a unit's init the following: _ReportIn = Officer addAction ["Report In", "ReportIn.sqf"] and in the ReportIn.sqf I have the following:

Bob action ["salute", bob];

Officer action ["salute", Officer];

Officer playmove "AidlPercSnonWnonDnon_talk1";

Officer removeaction _ReportIn;

I have placed the removeaction to the top and middle but it does not remove the action from the menu. Any help would be appreciated on what I am doing wrong.

Share this post


Link to post
Share on other sites

try this, not tested:

//init.sqf in mission folder

[officer] execVM "actID.sqf";

//actID.sqf

_officer = _this select 0;

_ReportIn = Officer addAction ["Report In", "ReportIn.sqf"];

//ReportIn.sqf

_officer = _this select 0;

_id = _this select 2;

Bob action ["salute", bob];

_Officer action ["salute", _Officer];

_Officer playmove "AidlPercSnonWnonDnon_talk1";

_Officer removeaction _id;

Edited by TobiasRp

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  

×