<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.visionaire-tracker.net/index.php?action=history&amp;feed=atom&amp;title=VisionaireObject_Command%3A_getId</id>
		<title>VisionaireObject Command: getId - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.visionaire-tracker.net/index.php?action=history&amp;feed=atom&amp;title=VisionaireObject_Command%3A_getId"/>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=VisionaireObject_Command:_getId&amp;action=history"/>
		<updated>2026-05-11T05:24:11Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.visionaire-tracker.net/index.php?title=VisionaireObject_Command:_getId&amp;diff=12221&amp;oldid=prev</id>
		<title>EK: Created page with &quot;Returns a table containing the internal id of the VisionaireObject and the id of the table it belongs to.   == Syntax == &lt;syntaxhighlight lang=&quot;lua&quot;&gt; getId() &lt;/syntaxhighlight...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=VisionaireObject_Command:_getId&amp;diff=12221&amp;oldid=prev"/>
				<updated>2023-08-31T15:39:37Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Returns a table containing the internal id of the VisionaireObject and the id of the table it belongs to.   == Syntax == &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; getId() &amp;lt;/syntaxhighlight...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Returns a table containing the internal id of the VisionaireObject and the id of the table it belongs to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
getId()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
none&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Return values ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;ts&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width:15%&amp;quot; colspan=&amp;quot;2&amp;quot; | Type/Structure&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; | table&lt;br /&gt;
| id (int)&lt;br /&gt;
| Internal id of the VisionaireObject&lt;br /&gt;
|-&lt;br /&gt;
| tableId (int)&lt;br /&gt;
| Id of the table the VisionaireObject belongs to&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
'''Example 1:''' Check if an animation belongs to a character or not.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkAnimOwner(anim)&lt;br /&gt;
  anim = getObject(&amp;quot;Animations[&amp;quot; .. anim .. &amp;quot;]&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
  if anim:getParent():getId().tableId == eOutfits then&lt;br /&gt;
    print(&amp;quot;The animation with id=&amp;quot; .. anim:getId().id .. &amp;quot; is a character animation.&amp;quot;)&lt;br /&gt;
  else&lt;br /&gt;
    print(&amp;quot;The animation with id=&amp;quot; .. anim:getId().id .. &amp;quot; is not a character animation.&amp;quot;)&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
checkAnimOwner(&amp;quot;welding_anim&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
-- The shorthand notation offers a more convenient way to achieve the same&lt;br /&gt;
function checkAnimOwner(anim)&lt;br /&gt;
  anim = Animations[anim]&lt;br /&gt;
&lt;br /&gt;
  if anim.parent.tableId == eOutfits then&lt;br /&gt;
    print(&amp;quot;The animation with id=&amp;quot; .. anim.id .. &amp;quot; is a character animation&amp;quot;)&lt;br /&gt;
  else&lt;br /&gt;
    print(&amp;quot;The animation with id=&amp;quot; .. anim.id .. &amp;quot; is not a character animation&amp;quot;)&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
checkAnimOwner(&amp;quot;welding_anim&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{toc}}&lt;/div&gt;</summary>
		<author><name>EK</name></author>	</entry>

	</feed>