Skip to content
vn_ms_fnc_driveOnEditorPath

vn_ms_fnc_driveOnEditorPath

Order vehicle to follow the path created from objects placed in specified editor layer. Vehicle will start from closest object to itself and continue to next closest one and so on. It’s recommended to use “Sign_Sphere” objects.

Syntax

[_vehicle,_layerName,_delete] call vn_ms_fnc_driveOnEditorPath;

Parameters

ParameterTypeDefaultDescription
_vehicle ObjectobjNull Vehicle that will follow the path.
_layerName String"" Layer that contains route objects.
_delete Booleanfalse Should the route objects be deleted.

Return value

Boolean - Function reached the end

Examples

[vn_sp01_jeep, "jeep_path"] call vn_ms_fnc_driveOnEditorPath;

Documented by Wyqer, veteran29.