Vn_ms_fnc_driveOnEditorPath

From Savage Game Design Wiki
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Wyqer, veteran29
Argument(s): n/a
Effect(s): unknown

Description

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

Syntax
[_vehicle,_layerName,_delete] call vn_ms_fnc_driveOnEditorPath;
Parameters
_vehicle: Object - (Optional, default objNull) Vehicle that will follow the path.
_layerName: String - (Optional, default "") Layer that contains route objects.
_delete: Boolean - (Optional, default false) Should the route objects be deleted.
Return value
Boolean - Function reached the end

Examples

Example 1
[vn_sp01_jeep, "jeep_path"] call vn_ms_fnc_driveOnEditorPath;