<?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%2FCharacterSetDetached</id>
	<title>Osiris/API/CharacterSetDetached - 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%2FCharacterSetDetached"/>
	<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=Osiris/API/CharacterSetDetached&amp;action=history"/>
	<updated>2026-05-12T23:37:19Z</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/CharacterSetDetached&amp;diff=5846&amp;oldid=prev</id>
		<title>Tinkerer: Documented CharacterSetDetached</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=Osiris/API/CharacterSetDetached&amp;diff=5846&amp;oldid=prev"/>
		<updated>2018-03-14T19:02:50Z</updated>

		<summary type="html">&lt;p&gt;Documented CharacterSetDetached&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 '''CharacterSetDetached'''(''(CHARACTERGUID)'''''_Character''', ''(INTEGER)'''''_Value''')&lt;br /&gt;
===== Description =====&lt;br /&gt;
Depending on whether '''_Value''' is 0 or 1, attaches or detaches '''_Character''' to/from the AI-grid and display.&lt;br /&gt;
&lt;br /&gt;
By default, all characters are attached to the AI-grid. When a character is detached,&lt;br /&gt;
* it remains active: its reactions and scriptframes in behaviour scripts will run, and statuses on this character will keep ticking;&lt;br /&gt;
* it will keep receiving events;&lt;br /&gt;
* it becomes invisible on the client side, but not on server side; this means that while you won't see it on screen, e.g. [[Osiris/API/CharacterSawCharacter|CharacterSawCharacter]] events will still be thrown and [[Osiris/API/CharacterCanSee|CharacterCanSee]] queries will still succeed. To make it invisible on server side as well, see the comments of [[Osiris/API/SetVisible|SetVisible]];&lt;br /&gt;
* it won't take up room on the AI-grid: other items/characters can occupy the space where the object was located&lt;br /&gt;
&lt;br /&gt;
===== Notes =====&lt;br /&gt;
* Unlike when setting a player off-stage, making a player detached keeps the camera focused on the place where the player was located.&lt;br /&gt;
* In addition to making the character invisible on server side, it is also a good idea to disable [[Osiris/API/CharacterDisableAllCrimes|all generic behaviours]] (in case this is an NPC), and the ability to [[Osiris/API/SetCanJoinCombat|join combat turn order]] when making a character detached.&lt;br /&gt;
* This call is used for the player characters while they get abducted in Reaper's Cave:&lt;br /&gt;
** The cocoon held by the insects is just an effect played on the insects&lt;br /&gt;
** Setting the players off-stage resulted in the camera switching focus to other characters (possibly in a completely different place in the game world)&lt;br /&gt;
** Making them merely invisible resulted in them still taking up room on the AI-grid, so other characters could not walk in the same spot and they would take damage from surfaces and area-of-effect skills affecting those spots&lt;br /&gt;
* This call is new in DOS2 Patch 5.&lt;br /&gt;
&lt;br /&gt;
===== See Also =====&lt;br /&gt;
* [[Osiris/API/SetOnStage|SetOnStage]]&lt;br /&gt;
* [[Osiris/API/SetVisible|SetVisible]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Osiris Calls|SetDetached]]&lt;/div&gt;</summary>
		<author><name>Tinkerer</name></author>
	</entry>
</feed>