Please help a dummy with this script error

Workshop for all Mission Engineer Comrades. Home of the FA Mission Making Template.
Post Reply
lietuvis10
Posts: 46
Joined: Tue Jul 22, 2014 9:14 pm

Please help a dummy with this script error

Post by lietuvis10 »

I get this error

Code: Select all

2:16:24 Error in expression < {};

["mkrAAF",200,resistance,21] call ws_fnc_createGarrison;
["mkrAAF3",50,res>
 2:16:24   Error position: <ws_fnc_createGarrison;
["mkrAAF3",50,res>
 2:16:24   Error Undefined variable in expression: ws_fnc_creategarrison
 2:16:24 File C:\Users\user\Documents\Arma 3 - Other Profiles\lietuvis10\mpmissions\fa3_c50_stavros_v1.Altis\spawncontrol.sqf, line 3
 2:16:25 Fresnel k must be >0, given n=2.51,k=0
when running this script:

Code: Select all

if !(isServer) exitWith {};

["mkrAAF",200,resistance,21] call ws_fnc_createGarrison;
["mkrAAF3",50,resistance,8] call ws_fnc_createGarrison;

[] execVM "f\setAISkill\f_setAISkill.sqf";
Any ideas?

User avatar
wolfenswan
Posts: 1209
Joined: Wed May 25, 2011 4:59 pm

Re: Please help a dummy with this script error

Post by wolfenswan »

It doesn't find the function. Have you changed the mission-name when saving it? In the editor press CTRL+F, seleft missionConfigFile from the top-left and check if you have a "F" and a "WS" category. If you have both, check if the "WS" one includes createGarrison.

If you can't find the issue upload the mission as a 7z and I'll have a peek.

Post Reply