<?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=Cam%3A%3AcreateCinematicShot</id>
	<title>Cam::createCinematicShot - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Cam%3A%3AcreateCinematicShot"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Cam::createCinematicShot&amp;action=history"/>
	<updated>2026-07-25T02:15:21Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Cam::createCinematicShot&amp;diff=400&amp;oldid=prev</id>
		<title>imported&gt;Shr0x в 09:36, 2 ноября 2024</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Cam::createCinematicShot&amp;diff=400&amp;oldid=prev"/>
		<updated>2024-11-02T09:36:51Z</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;
The `createCinematicShot` function in RageMP initiates a cinematic camera shot that can be focused on a specific entity. This function allows you to create a dramatic view, useful for cutscenes or special sequences where a more controlled camera angle is needed.&lt;br /&gt;
&lt;br /&gt;
The parameters `p0`, `p1`, and `p2` are not fully documented, but `entity` specifies the object or player to focus the cinematic shot on.&lt;br /&gt;
&lt;br /&gt;
=== Required Params ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;p0:&amp;#039;&amp;#039;&amp;#039; {{RageType|unknown}} – Purpose unknown (requires testing).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;p1:&amp;#039;&amp;#039;&amp;#039; {{RageType|int}} – Possibly shot mode/type.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;p2:&amp;#039;&amp;#039;&amp;#039; {{RageType|unknown}} – Purpose unknown (requires testing).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;entity:&amp;#039;&amp;#039;&amp;#039; {{RageType|Entity}} – The entity handle or object to target for the cinematic shot.&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Undefined&amp;#039;&amp;#039;&amp;#039; – This function does not return a value.&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.cam.createCinematicShot(p0, p1, p2, entity);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// Example usage of createCinematicShot&lt;br /&gt;
const player = mp.players.local;&lt;br /&gt;
const cam = mp.cameras.new(&amp;quot;default&amp;quot;, new mp.Vector3(0, 0, 10), new mp.Vector3(0, 0, 0), 60);&lt;br /&gt;
cam.setActive(true);&lt;br /&gt;
mp.game.cam.renderScriptCams(true, false, 0, true, false);&lt;br /&gt;
&lt;br /&gt;
const targetEntity = player.handle; // Replace with any valid entity handle&lt;br /&gt;
&lt;br /&gt;
// Initiate a cinematic shot focused on the player entity&lt;br /&gt;
mp.game.cam.createCinematicShot(cam.handle, 1, 0, targetEntity);&lt;br /&gt;
mp.gui.chat.push(&amp;quot;Cinematic shot created for player.&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{Cam_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Shr0x</name></author>
	</entry>
</feed>