The function does not execute at all when I send it to a client on my server.
Description
Details
- Legacy ID
- 1340269801
- Severity
- None
- Resolution
- No Bug
- Reproducibility
- Have Not Tried
- Category
- Scripting
[[[_vehicle] ,"vehicleAddAction.sqf"], "BIS_fnc_execVM", _id, false] spawn BIS_fnc_MP;
Nothing happens.
But when I have:
[[[_vehicle] ,"vehicleAddAction.sqf"], "BIS_fnc_execVM"] spawn BIS_fnc_MP;
It works.
The script where I am running it looks like this.
//onPlayerConnected.sqf
_uid = _this select 0;
_id = _this select 1;
_name = _this select 2;
{
_locName = (_x select 0);
_locName = toLower([_locName, " ", ""] call ED_strings_replace);
_locName = [_locName, "-", ""] call ED_strings_replace;
call compile format["%2 publicVariableClient ""%1"";
", _locName, _id];
} foreach RespawnLocations;
{
[[[_x] ,"vehicleAddAction.sqf"], "BIS_fnc_execVM", _id, false] spawn BIS_fnc_MP;
} foreach VehicleTrackArray; //An array containing vehicle objects
I need it for JIP scripting.
Event Timeline
Seems like I looked at the wrong feature for the error. The player ID returns 5.3...+e4(some weird number). I guess that's what was wrong actually.
I suggest to ask in the official forum (http://forums.bistudio.com/forumdisplay.php?162-ARMA-3-BETA-MISSION-EDITING-amp-SCRIPTING), maybe somebody encountered the same scripting problem you have before.
Closing here, BIS_fnc_MP works as intended.