<?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=Camera%3A%3AisActive</id>
	<title>Camera::isActive - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Camera%3A%3AisActive"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Camera::isActive&amp;action=history"/>
	<updated>2026-07-24T21:11:05Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Camera::isActive&amp;diff=621&amp;oldid=prev</id>
		<title>imported&gt;Flasbing: /* Example */</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Camera::isActive&amp;diff=621&amp;oldid=prev"/>
		<updated>2020-12-11T23:34:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Returns whether or not the passed camera handle is active.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;camera.isActive();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Boolean&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
==Example==&lt;br /&gt;
This example create a camera and then checks if the camera is active, if it&amp;#039;s not active it should active it.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
let camera = mp.cameras.new(&amp;#039;default&amp;#039;, new mp.Vector3(-485, 1095.75, 323.85), new mp.Vector3(0,0,0), 40); // Creates the camera&lt;br /&gt;
&lt;br /&gt;
if (camera.isActive()) { // checks if camera is active, if not then it should set the camera active&lt;br /&gt;
  camera.setFov(15);&lt;br /&gt;
} else {&lt;br /&gt;
  camera.setActive(true);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Camera_definition_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Flasbing</name></author>
	</entry>
</feed>