<?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%3AsetDrawOrigin</id>
	<title>Graphics::setDrawOrigin - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Graphics%3A%3AsetDrawOrigin"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Graphics::setDrawOrigin&amp;action=history"/>
	<updated>2026-07-24T19:45:22Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Graphics::setDrawOrigin&amp;diff=10430&amp;oldid=prev</id>
		<title>imported&gt;Marty uploader: yay</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Graphics::setDrawOrigin&amp;diff=10430&amp;oldid=prev"/>
		<updated>2017-05-06T21:26:58Z</updated>

		<summary type="html">&lt;p&gt;yay&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sets the on-screen drawing origin for draw-functions (which is normally x=0,y=0 in the upper left corner of the screen) to a world coordinate.&amp;lt;br&amp;gt;From now on, the screen coordinate which displays the given world coordinate on the screen is seen as x=0,y=0.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Example in C#:&amp;lt;br&amp;gt;Vector3 boneCoord = somePed.GetBoneCoord(Bone.SKEL_Head);&amp;lt;br&amp;gt;Function.Call(Hash.SET_DRAW_ORIGIN, boneCoord.X, boneCoord.Y, boneCoord.Z, 0);&amp;lt;br&amp;gt;Function.Call(Hash.DRAW_SPRITE, &amp;#039;helicopterhud&amp;#039;, &amp;#039;hud_corner&amp;#039;, -0.01, -0.015, 0.013, 0.013, 0.0, 255, 0, 0, 200);&amp;lt;br&amp;gt;Function.Call(Hash.DRAW_SPRITE, &amp;#039;helicopterhud&amp;#039;, &amp;#039;hud_corner&amp;#039;, 0.01, -0.015, 0.013, 0.013, 90.0, 255, 0, 0, 200);&amp;lt;br&amp;gt;Function.Call(Hash.DRAW_SPRITE, &amp;#039;helicopterhud&amp;#039;, &amp;#039;hud_corner&amp;#039;, -0.01, 0.015, 0.013, 0.013, 270.0, 255, 0, 0, 200);&amp;lt;br&amp;gt;Function.Call(Hash.DRAW_SPRITE, &amp;#039;helicopterhud&amp;#039;, &amp;#039;hud_corner&amp;#039;, 0.01, 0.015, 0.013, 0.013, 180.0, 255, 0, 0, 200);&amp;lt;br&amp;gt;Function.Call(Hash.CLEAR_DRAW_ORIGIN);&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Result: www11.pic-upload.de/19.06.15/bkqohvil2uao.jpg&amp;lt;br&amp;gt;If the pedestrian starts walking around now, the sprites are always around her head, no matter where the head is displayed on the screen.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;This function also effects the drawing of texts and other UI-elements.&amp;lt;br&amp;gt;The effect can be reset by calling GRAPHICS::CLEAR_DRAW_ORIGIN().&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.graphics.setDrawOrigin(x, y, z, p3);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;x:&amp;#039;&amp;#039;&amp;#039; float&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;y:&amp;#039;&amp;#039;&amp;#039; float&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;z:&amp;#039;&amp;#039;&amp;#039; float&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;p3:&amp;#039;&amp;#039;&amp;#039; unknown (to be checked)&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Undefined&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Graphics_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Marty uploader</name></author>
	</entry>
</feed>