Arma 3
MrMessy187 Apr 15, 2016 @ 11:04am
[solved] problem with execVM ...
Hey,

im having some troubles with this snippet of code, on local server it runs fine however on dedicated, it looks like the execVM line near the bottom is not being run..


if (!_missionExists) then { _insert = [ _missionName, _MissionType, _markerID, _triggerID, _missionDescription, _missionSuccess, _missionFailed, _missionCanceled, _useTimer, _initMissionScript, _endMissionScript, _showMissionMarker, _missionStartTime ]; nul = [ _missionName, _insert] call SetMission_Params; if (_createTask) then { if (count _taskParams > 1) then { nul = _taskParams call CreateMission_Task; }; }; if (isServer) then { JIP_DataBase set [count JIP_DataBase, _this]; vUpdateJIPPlayer = JIP_DataBase; if (_showMissionMarker) then { _markerInfo = [_markerId] call GetTownMarkerById; if (!isNil "_markerInfo") then { _marker = _markerInfo select 2; if (!isNil "_marker") then { _marker setMarkerAlpha 0.7; }; }; }; ActiveMissionStatus set [count ActiveMissionStatus, [_missionName, "Created", true]]; vCreateMission = _this; publicVariable "vCreateMission"; vNumOfActiveMissions = vNumOfActiveMissions + 1; vNumOfMissionsPlayed = vNumOfMissionsPlayed + 1; nul = [_missionName] execVM _initMissionScript; // problem here };

like i say runs perfectly local, just on dedi, its not working can you see anything wrong?

Thanks for the help..

Domino
Last edited by MrMessy187; Apr 15, 2016 @ 1:22pm
< >
Showing 1-4 of 4 comments
Persona Apr 15, 2016 @ 11:23am 
try:
[_missionName, BIS_fnc_execVM] call BIS_fnc_MP;
Stiefel OS Apr 15, 2016 @ 12:41pm 
nul =[] execVM "scripts\Name.sqf"
MrMessy187 Apr 15, 2016 @ 1:23pm 
aye guys, that fixed it.. nice one.. :)
Persona Apr 15, 2016 @ 3:18pm 
Ah nice one, even if the code I gave was wrong :D not my day today...

But if someone else will be interested in the right one:
[[[_param1,_param2],"script.sqf"],"BIS_fnc_execVM",false,true] call BIS_fnc_MP;
Last edited by Persona; Apr 15, 2016 @ 3:19pm
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Apr 15, 2016 @ 11:04am
Posts: 4