<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Graphics%3A%3AcreateCheckpoint</id>
	<title>Graphics::createCheckpoint - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Graphics%3A%3AcreateCheckpoint"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Graphics::createCheckpoint&amp;action=history"/>
	<updated>2026-07-24T18:46:18Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Graphics::createCheckpoint&amp;diff=10207&amp;oldid=prev</id>
		<title>imported&gt;Shr0x в 11:47, 5 ноября 2024</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Graphics::createCheckpoint&amp;diff=10207&amp;oldid=prev"/>
		<updated>2024-11-05T11:47:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ClientsideJsFunction}}&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
Creates a checkpoint in the game world, returning a handle to reference it. Checkpoints are customizable markers often used for navigation, objectives, or area marking.&lt;br /&gt;
&lt;br /&gt;
=== Checkpoint Types ===&lt;br /&gt;
Each `type` value corresponds to different checkpoint styles:&lt;br /&gt;
- **0-4, 5-9, 20-24, 25-29, 30-34**: Cylinder types with 1 to 3 arrows, CycleArrow, Checker.&lt;br /&gt;
- **10-14, 15-19**: Ring styles with various arrow options.&lt;br /&gt;
- **35-38**: Airplane Ring types for specific directions.&lt;br /&gt;
- **40**: Simple ring.&lt;br /&gt;
- **42-44**: Numbered cylinders using the `reserved` parameter for customization.&lt;br /&gt;
&lt;br /&gt;
=== Reserved Parameter ===&lt;br /&gt;
For `type` values 42-44, `reserved` controls the displayed number and style, allowing further customization:&lt;br /&gt;
- **0-99**: Number display.&lt;br /&gt;
- **100-179**: Arrow or CycleArrow display.&lt;br /&gt;
- **180-189**: Sphere.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.game.graphics.createCheckpoint(type, posX1, posY1, posZ1, posX2, posY2, posZ2, radius, colorR, colorG, colorB, alpha, reserved);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;type:&amp;#039;&amp;#039;&amp;#039; int - Type of checkpoint to create.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;posX1, posY1, posZ1:&amp;#039;&amp;#039;&amp;#039; float - Coordinates of the checkpoint position.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;posX2, posY2, posZ2:&amp;#039;&amp;#039;&amp;#039; float - Coordinates pointing to the next checkpoint.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;radius:&amp;#039;&amp;#039;&amp;#039; float - Radius of the checkpoint.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;colorR, colorG, colorB:&amp;#039;&amp;#039;&amp;#039; int - RGB color values.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;alpha:&amp;#039;&amp;#039;&amp;#039; int - Transparency level (0-255).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;reserved:&amp;#039;&amp;#039;&amp;#039; int - Used for numbered checkpoints (42-44).&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;int&amp;#039;&amp;#039;&amp;#039; - Handle to the created checkpoint.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example creates a white ring checkpoint for an airplane marker at a specified position.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
const type = 35; // Airplane ring&lt;br /&gt;
const position1 = { x: -115, y: -848, z: 36 };&lt;br /&gt;
const position2 = { x: -115, y: -848, z: 39 };&lt;br /&gt;
const radius = 1.0;&lt;br /&gt;
const color = { r: 255, g: 255, b: 255, a: 150 };&lt;br /&gt;
const reserved = 0;&lt;br /&gt;
&lt;br /&gt;
mp.game.graphics.createCheckpoint(type, position1.x, position1.y, position1.z, position2.x, position2.y, position2.z, radius, color.r, color.g, color.b, color.a, reserved);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
==See also==&lt;br /&gt;
{{Graphics_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Shr0x</name></author>
	</entry>
</feed>