<?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=Entity%3A%3AgetAnimCurrentTime</id>
	<title>Entity::getAnimCurrentTime - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Entity%3A%3AgetAnimCurrentTime"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Entity::getAnimCurrentTime&amp;action=history"/>
	<updated>2026-07-24T20:09:19Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Entity::getAnimCurrentTime&amp;diff=915&amp;oldid=prev</id>
		<title>imported&gt;Shr0x: /* See also */</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Entity::getAnimCurrentTime&amp;diff=915&amp;oldid=prev"/>
		<updated>2024-05-01T17:56:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;See also&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Returns a float value representing animation&amp;#039;s current playtime with respect to its total playtime. This value increasing in a range from [0 to 1] and wrap back to 0 when it reach 1.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Example:&amp;lt;br&amp;gt;0.000000 - mark the starting of animation.&amp;lt;br&amp;gt;0.500000 - mark the midpoint of the animation.&amp;lt;br&amp;gt;1.000000 - mark the end of animation.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;entity.getAnimCurrentTime(animDict, animName);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;animDict:&amp;#039;&amp;#039;&amp;#039; String&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;animName:&amp;#039;&amp;#039;&amp;#039; String&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;float&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;
// Example of stopping animation at the end and prevent loop.&lt;br /&gt;
&lt;br /&gt;
let player = mp.players.local;&lt;br /&gt;
&lt;br /&gt;
setInterval(() =&amp;gt; {&lt;br /&gt;
	if(player.getAnimCurrentTime(path, name) &amp;gt; 0.95){&lt;br /&gt;
		player.stopAnimTask(path, name, 3.0);&lt;br /&gt;
		clearInterval(this);&lt;br /&gt;
	}&lt;br /&gt;
}, 1);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Entity_definition_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>