Skip to content

mp_linear_path

CryoEagle edited this page Feb 11, 2019 · 1 revision

mp_linear_path

Saves linear path

Syntax:

mp_linear_path(Path)
Argument Description
GamePath Path Path instance where will be positions saved

Returns: void

Description:

This function will save path to an instance of GamePath, it's useful for debugging or using path later in the game. Don't forget to create the instance of GamePath.

Example:

if (mp_linear_objects(10,10,20,new []{typeof(oBrick), typeof(oGem)}) == false)
{
    mp_linear_path(path);
}

Above code will move with an object to X: 10, Y:10, while moving and don't collide with objects named oBrick or oGem it will save path to an instance of object GamePath named path.

Back to Motion Planning

Clone this wiki locally