Jump to content

Recommended Posts

Why is the Addaction with a title and a .sqf breaking the game? I get a preprocessor error with it and it doesn't execute the .sqf.

 

OnAct: myaction = player addAction ["Insert Ear Defence", "EarDefence.sqf"]

 

Error: Preprocessor failed with error - Invalid file name (empty filename)

Share this post


Link to post
Share on other sites

The ear defence script is fine. If I call it straight up it will work.

 

I just tried the following line from ArmA 2 and got the same error.

 

act1 = u1 addaction ["Join group","join.sqf",0,1, true, true,"test2"];

 

This following line works but where does the call for the script go?

 

this addAction
[
"Ask for help.",
{
 (_this select 0) removeAction (_this select 2);
 (_this select 0) setUnitPos "UP";
 [(_this select 0)] joinSilent (group (_this select 1));
},
nil,
6,
true,
true,
"",
"_this distance _target < 5"
];

 

Share this post


Link to post
Share on other sites

I've never seen a Preprocessor error, have you verified the game in steam  to make sure all files are installed correctly.

 

this worked fine for me.

act1 = u1 addaction ["Join group","join.sqf",0,1, true, true,"test2"];

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

×