Method CreateCheckpoint
CreateCheckpoint(CheckpointIcon, Vector3, Vector3, Single, Color)
Creates a Checkpoint in the world.
Declaration
public static Checkpoint CreateCheckpoint(CheckpointIcon icon, Vector3 position, Vector3 pointTo, float radius, Color color)
Parameters
Type | Name | Description |
---|---|---|
CheckpointIcon | icon | The CheckpointIcon to display inside the Checkpoint. |
Vector3 | position | The position in the World. |
Vector3 | pointTo | The position in the world where this Checkpoint should point. |
System.Single | radius | The radius of the Checkpoint. |
System.Drawing.Color | color | The color of the Checkpoint. |
Returns
Type | Description |
---|---|
Checkpoint |
Remarks
returns null
if the Checkpoint could not be created
CreateCheckpoint(CheckpointCustomIcon, Vector3, Vector3, Single, Color)
Creates a Checkpoint in the world.
Declaration
public static Checkpoint CreateCheckpoint(CheckpointCustomIcon icon, Vector3 position, Vector3 pointTo, float radius, Color color)
Parameters
Type | Name | Description |
---|---|---|
CheckpointCustomIcon | icon | The CheckpointCustomIcon to display inside the Checkpoint. |
Vector3 | position | The position in the World. |
Vector3 | pointTo | The position in the world where this Checkpoint should point. |
System.Single | radius | The radius of the Checkpoint. |
System.Drawing.Color | color | The color of the Checkpoint. |
Returns
Type | Description |
---|---|
Checkpoint |
Remarks
returns null
if the Checkpoint could not be created