Jump to content
SRBuckey5266

addAction doesn't work as described?

Recommended Posts

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?

  • Like 1

Share this post


Link to post
Share on other sites

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"}];

  • Like 1

Share this post


Link to post
Share on other sites
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"}];

Already tried it. Doesn't work.

  • Like 1

Share this post


Link to post
Share on other sites

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";

  • Thanks 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

×