<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.larian.game/index.php?action=history&amp;feed=atom&amp;title=Osiris%2FAPI%2FItemScatterAt</id>
	<title>Osiris/API/ItemScatterAt - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.larian.game/index.php?action=history&amp;feed=atom&amp;title=Osiris%2FAPI%2FItemScatterAt"/>
	<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=Osiris/API/ItemScatterAt&amp;action=history"/>
	<updated>2026-05-13T06:40:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://docs.larian.game/index.php?title=Osiris/API/ItemScatterAt&amp;diff=6016&amp;oldid=prev</id>
		<title>Tinkerer at 16:30, 14 July 2018</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=Osiris/API/ItemScatterAt&amp;diff=6016&amp;oldid=prev"/>
		<updated>2018-07-14T16:30:35Z</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:30, 14 July 2018&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-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&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;* If ('''_X''', '''_Y''', '''_Z''') is different from the item's current position, it will first be (internally) teleported there and resulting [[Osiris/API/ItemLeftTrigger|ItemLeftTrigger]] and [[Osiris/API/ItemEnteredTrigger|ItemEnteredTrigger]] events will be thrown as appropriate (no [[Osiris/API/ItemMoved|ItemMoved]] though).&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;* If ('''_X''', '''_Y''', '''_Z''') is different from the item's current position, it will first be (internally) teleported there and resulting [[Osiris/API/ItemLeftTrigger|ItemLeftTrigger]] and [[Osiris/API/ItemEnteredTrigger|ItemEnteredTrigger]] events will be thrown as appropriate (no [[Osiris/API/ItemMoved|ItemMoved]] though).&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;div&gt;* The scatter operation itself is a regular move task, similar to [[Osiris/API/ItemMoveToPosition|ItemMoveToPosition]] with '''_DoHits''' = 1, except that the item will move in an arc rather than in a straight line. The remarks for that call therefore also apply to this one. In particular, if the item's movement is blocked in the randomly chosen direction, it may not move at all. You will still get an [[Osiris/API/ItemMoved|ItemMoved]] event in this case, as an item move operation was started and completed.&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;* The scatter operation itself is a regular move task, similar to [[Osiris/API/ItemMoveToPosition|ItemMoveToPosition]] with '''_DoHits''' = 1, except that the item will move in an arc rather than in a straight line. The remarks for that call therefore also apply to this one. In particular, if the item's movement is blocked in the randomly chosen direction, it may not move at all. You will still get an [[Osiris/API/ItemMoved|ItemMoved]] event in this case, as an item move operation was started and completed.&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;* Due to implementation issues, scattering an item right after [[Osiris/API/CreateItemTemplateAtPosition|creating]] it&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/del&gt;will never change its position (it will still throw an [[Osiris/API/ItemMoved|ItemMoved]] event &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;though&lt;/del&gt;). A workaround is to scatter it again after receiving the [[Osiris/API/ItemMoved|ItemMoved]] event from the first scatter operation.&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;* Due to implementation issues, scattering an item right after [[Osiris/API/CreateItemTemplateAtPosition|creating]] it will never change its position (it will still throw an [[Osiris/API/ItemMoved|ItemMoved]] event). A workaround is to scatter it again after receiving the [[Osiris/API/ItemMoved|ItemMoved]] event from the first scatter operation.&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;div&gt;===== See Also =====&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;===== See Also =====&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;div&gt;* [[Osiris/API/ItemDragToPosition|ItemDragToPosition]]&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;* [[Osiris/API/ItemDragToPosition|ItemDragToPosition]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tinkerer</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=Osiris/API/ItemScatterAt&amp;diff=6010&amp;oldid=prev</id>
		<title>Tinkerer: Documented ItemScatterAt</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=Osiris/API/ItemScatterAt&amp;diff=6010&amp;oldid=prev"/>
		<updated>2018-07-11T09:27:03Z</updated>

		<summary type="html">&lt;p&gt;Documented ItemScatterAt&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===== Full Definition(s) =====&lt;br /&gt;
* call '''ItemScatterAt'''(''(ITEMGUID)'''''_Item''', ''(REAL)'''''_X''', ''(REAL)'''''_Y''', ''(REAL)'''''_Z''')&lt;br /&gt;
===== Description =====&lt;br /&gt;
Makes '''_Item''' move from the position ('''_X''', '''_Y''', '''_Z''') in an arc to a random location around the source position. This location is picked by first selecting a position within a 10 metre square around the position, and then looking for a valid (green) AI-grid position at most 5 metres from this spot.&lt;br /&gt;
===== Notes =====&lt;br /&gt;
* If no valid (green) AI-grid position can be found with the above constraints, this call will not do anything nor result in any events.&lt;br /&gt;
* If the item is currently in an inventory or equipped, it gets dropped and [[Osiris/API/ItemRemovedFromCharacter|ItemRemovedFromCharacter]], [[Osiris/API/ItemTemplateRemovedFromCharacter|ItemTemplateRemovedFromCharacter]], [[Osiris/API/ItemRemovedFromContainer|ItemRemovedFromContainer]], [[Osiris/API/ItemTemplateRemovedFromContainer|ItemTemplateRemovedFromContainer]], and [[Osiris/API/ItemDropped|ItemDropped]] events get thrown as appropriate.&lt;br /&gt;
* If ('''_X''', '''_Y''', '''_Z''') is different from the item's current position, it will first be (internally) teleported there and resulting [[Osiris/API/ItemLeftTrigger|ItemLeftTrigger]] and [[Osiris/API/ItemEnteredTrigger|ItemEnteredTrigger]] events will be thrown as appropriate (no [[Osiris/API/ItemMoved|ItemMoved]] though).&lt;br /&gt;
* The scatter operation itself is a regular move task, similar to [[Osiris/API/ItemMoveToPosition|ItemMoveToPosition]] with '''_DoHits''' = 1, except that the item will move in an arc rather than in a straight line. The remarks for that call therefore also apply to this one. In particular, if the item's movement is blocked in the randomly chosen direction, it may not move at all. You will still get an [[Osiris/API/ItemMoved|ItemMoved]] event in this case, as an item move operation was started and completed.&lt;br /&gt;
* Due to implementation issues, scattering an item right after [[Osiris/API/CreateItemTemplateAtPosition|creating]] it, will never change its position (it will still throw an [[Osiris/API/ItemMoved|ItemMoved]] event though). A workaround is to scatter it again after receiving the [[Osiris/API/ItemMoved|ItemMoved]] event from the first scatter operation.&lt;br /&gt;
===== See Also =====&lt;br /&gt;
* [[Osiris/API/ItemDragToPosition|ItemDragToPosition]]&lt;br /&gt;
* [[Osiris/API/ItemDragToTrigger|ItemDragToTrigger]]&lt;br /&gt;
* [[Osiris/API/ItemMoved|ItemMoved]]&lt;br /&gt;
* [[Osiris/API/ItemMoveToPosition|ItemMoveToPosition]]&lt;br /&gt;
* [[Osiris/API/ItemMoveToTrigger|ItemMoveToTrigger]]&lt;br /&gt;
* [[Osiris/API/ItemTemplateMoved|ItemTemplateMoved]]&lt;br /&gt;
* [[Osiris/API/ItemToTransform|ItemToTransform]]&lt;br /&gt;
* [[Osiris/API/TeleportTo|TeleportTo]]&lt;br /&gt;
* [[Osiris/API/TeleportToPosition|TeleportToPosition]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Osiris Calls|ItemScatterAt]]&lt;/div&gt;</summary>
		<author><name>Tinkerer</name></author>
	</entry>
</feed>