-
-
Notifications
You must be signed in to change notification settings - Fork 18
mp_linear_path
CryoEagle edited this page Feb 11, 2019
·
1 revision
Saves linear path
mp_linear_path(Path)
Argument | Description |
---|---|
GamePath Path |
Path instance where will be positions saved |
Returns: void
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.
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