SRBuckey5266 3 Posted June 21, 2013 player addAction["Get Message", {hint "message";}, nil, 6, True, True, "", "_this == _target"]; The ArmaA2 wiki says that the "code/filename" parameter of addAction accepts Code or a path to a .sqf/.sqs script; however, when I try to use a block of code, it doesn't seem to work? Any ideas as to why this is so? 1 Share this post Link to post Share on other sites
samatra 85 Posted June 21, 2013 Hm, it might be that supplying code is a feature of TKOH\A3 and not supported by A2 Also try something simplier like player addAction ["test", {hint "test"}]; 1 Share this post Link to post Share on other sites
SRBuckey5266 3 Posted June 22, 2013 Hm, it might be that supplying code is a feature of TKOH\A3 and not supported by A2Also try something simplier like player addAction ["test", {hint "test"}]; Already tried it. Doesn't work. 1 Share this post Link to post Share on other sites
f2k sel 164 Posted June 22, 2013 A2/OA will only accept string not code , it will work in A3 You will need to call a script using the addaction player addAction ["test", "hint.sqf"]; save as hint.sqf hint "test"; 1 Share this post Link to post Share on other sites
John Douglas 2 Posted May 22, 2019 Below are links to discussion for a work around solution using "gen_action.sqf" script. Hope this helps! https://forums.bohemia.net/forums/topic/94751-addaction-simplified/ https://epochmod.com/forum/topic/12901-addaction-without-external-script/ Share this post Link to post Share on other sites