<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=Enabling_Attached_Object_Collision</id>
	<title>Enabling Attached Object Collision - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=Enabling_Attached_Object_Collision"/>
	<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=Enabling_Attached_Object_Collision&amp;action=history"/>
	<updated>2026-06-03T13:07:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://dev.playonset.com/index.php?title=Enabling_Attached_Object_Collision&amp;diff=4477&amp;oldid=prev</id>
		<title>BlueMountains at 16:36, 8 October 2020</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=Enabling_Attached_Object_Collision&amp;diff=4477&amp;oldid=prev"/>
		<updated>2020-10-08T16:36:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:36, 8 October 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;SetObjectAttached disables the collision of &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;some &lt;/del&gt;objects.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/ins&gt;SetObjectAttached&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/ins&gt;disables the collision of objects.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is how to enable collision.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is how to enable collision &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;for attached objects again. Be careful when collisions overlap vehicles&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;server.lua:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;server.lua:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>BlueMountains</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=Enabling_Attached_Object_Collision&amp;diff=3719&amp;oldid=prev</id>
		<title>BlueMountains: BlueMountains moved page AttachedObjectsCollision to Enabling Attached Object Collision without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=Enabling_Attached_Object_Collision&amp;diff=3719&amp;oldid=prev"/>
		<updated>2020-01-24T16:20:44Z</updated>

		<summary type="html">&lt;p&gt;BlueMountains moved page &lt;a href=&quot;/index.php?title=AttachedObjectsCollision&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;AttachedObjectsCollision (page does not exist)&quot;&gt;AttachedObjectsCollision&lt;/a&gt; to &lt;a href=&quot;/wiki/Enabling_Attached_Object_Collision&quot; title=&quot;Enabling Attached Object Collision&quot;&gt;Enabling Attached Object Collision&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:20, 24 January 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>BlueMountains</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=Enabling_Attached_Object_Collision&amp;diff=3718&amp;oldid=prev</id>
		<title>BlueMountains: Created page with &quot;SetObjectAttached disables the collision of some objects. Here is how to enable collision.  server.lua: &lt;syntaxhighlight lang=&quot;Lua&quot;&gt; --- Set this property value to your attach...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=Enabling_Attached_Object_Collision&amp;diff=3718&amp;oldid=prev"/>
		<updated>2020-01-24T16:20:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;SetObjectAttached disables the collision of some objects. Here is how to enable collision.  server.lua: &amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt; --- Set this property value to your attach...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;SetObjectAttached disables the collision of some objects.&lt;br /&gt;
Here is how to enable collision.&lt;br /&gt;
&lt;br /&gt;
server.lua:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
--- Set this property value to your attached object:&lt;br /&gt;
SetObjectPropertyValue(o, &amp;quot;_enableCollision&amp;quot;, true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
client.lua:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
AddEvent(&amp;quot;OnObjectStreamIn&amp;quot;, function(object)&lt;br /&gt;
&lt;br /&gt;
    local _enableCollision = GetObjectPropertyValue(object, &amp;quot;_enableCollision&amp;quot;)&lt;br /&gt;
    &lt;br /&gt;
    if _enableCollision == true then&lt;br /&gt;
        &lt;br /&gt;
        -- We need to delay enabling the collision. Attached objects have their collision set in the attach RPC that comes after the stream event.&lt;br /&gt;
        Delay(200, function(object)&lt;br /&gt;
            if IsValidObject(object) then&lt;br /&gt;
                GetObjectActor(object):SetActorEnableCollision(true)&lt;br /&gt;
                local SMC = GetObjectStaticMeshComponent(object)&lt;br /&gt;
                SMC:SetMobility(EComponentMobility.Movable)&lt;br /&gt;
                SMC:SetCollisionEnabled(ECollisionEnabled.QueryAndPhysics)&lt;br /&gt;
                print(&amp;quot;Enabled collision&amp;quot;)&lt;br /&gt;
            end&lt;br /&gt;
        end, object)&lt;br /&gt;
        &lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>BlueMountains</name></author>
	</entry>
</feed>