Пример #1
0
        /// <summary>
        /// Creates a simple, circular checkpoint.
        /// </summary>
        /// <returns>Returns the ID for the created checkpoint. The ID can be used to delete the checkpoint later on.</returns>
        public static int Create(Vector3 position, float radius, byte red, byte green, byte blue, byte alpha, float height)
        {
            var id = NativeWrappers.CreateCheckpoint(47, position, position, radius, red, green, blue, alpha, 0);

            NativeWrappers.SetCheckpointCylinderHeight(id, height, height, radius);
            return(id);
        }