<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.frictionalgames.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Archivist</id>
	<title>Frictional Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.frictionalgames.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Archivist"/>
	<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page/Special:Contributions/Archivist"/>
	<updated>2026-04-03T20:04:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.frictionalgames.com/page?title=HPL3/SOMA/Scripting/Scripting_Api/MoveObject&amp;diff=6817</id>
		<title>HPL3/SOMA/Scripting/Scripting Api/MoveObject</title>
		<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=HPL3/SOMA/Scripting/Scripting_Api/MoveObject&amp;diff=6817"/>
		<updated>2024-05-30T16:23:55Z</updated>

		<summary type="html">&lt;p&gt;Archivist: Fixed typo on afState's description (It's supposed to be the door's position, not a lock or unlocked state)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!&lt;br /&gt;
&lt;br /&gt;
''Note: The official documentation for these functions had a typo where it wrongly documented the use of 'afState' in the function.''&lt;br /&gt;
&lt;br /&gt;
==Summary==&lt;br /&gt;
{{CodeDocSummaryTop}}&lt;br /&gt;
{{CodeDocSummaryItem|void|[[#MoveObject_SetState|MoveObject_SetState]](const [[../../tString|tString]] &amp;amp;in asName, float afState)|Sets the state of the move object}}&lt;br /&gt;
{{CodeDocSummaryItem|void|[[#MoveObject_SetStateExt|MoveObject_SetStateExt]](const [[../../tString|tString]] &amp;amp;in asName, float afState, float afAcc, float afMaxSpeed, float afSlowdownDist, bool abResetSpeed)|Sets the state of the move object}}&lt;br /&gt;
{{CodeDocSummaryBottom}}&lt;br /&gt;
&lt;br /&gt;
==Function Detail==&lt;br /&gt;
{{CodeDocDetailTop|MoveObject_SetState}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c++&amp;quot;&amp;gt;void MoveObject_SetState(const tString &amp;amp;in asName,&lt;br /&gt;
                         float afState)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeDocDetailBody|Sets the state of the move object. This makes it move to a certain postion between&amp;lt;br/&amp;gt;min or max pos (or outside of that is &amp;lt;0 or &amp;gt;1).}}&lt;br /&gt;
{{CodeDocDetailParamStart}}&lt;br /&gt;
{{CodeDocDetailParam|asName|[[../../tString|tString]]|name of move object}}&lt;br /&gt;
{{CodeDocDetailParam|afState|float|the position of the door you want to set it to (between 0.0f and 1.0f).}}&lt;br /&gt;
{{CodeDocDetailReturn|void|}}&lt;br /&gt;
{{CodeDocDetailBottom}}&lt;br /&gt;
&lt;br /&gt;
{{CodeDocDetailTop|MoveObject_SetStateExt}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c++&amp;quot;&amp;gt;void MoveObject_SetStateExt(const tString &amp;amp;in asName,&lt;br /&gt;
                            float afState,&lt;br /&gt;
                            float afAcc,&lt;br /&gt;
                            float afMaxSpeed,&lt;br /&gt;
                            float afSlowdownDist,&lt;br /&gt;
                            bool abResetSpeed)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeDocDetailBody|Sets the state of the move object. This makes it move to a certain postion between&amp;lt;br/&amp;gt;min or max pos (or outside of that is &amp;lt;0 or &amp;gt;1).&amp;lt;br/&amp;gt;This will also set the speeed and acc at which the movement occurs.}}&lt;br /&gt;
{{CodeDocDetailParamStart}}&lt;br /&gt;
{{CodeDocDetailParam|asName|[[../../tString|tString]]|name of move object}}&lt;br /&gt;
{{CodeDocDetailParam|afState|float|the position of the door you want to set it to (between 0.0f and 1.0f).}}&lt;br /&gt;
{{CodeDocDetailParam|afAcc|float|the acceleration of the movement}}&lt;br /&gt;
{{CodeDocDetailParam|afMaxSpeed|float|the max speed.}}&lt;br /&gt;
{{CodeDocDetailParam|afSlowdownDist|float|the distance from the state postion that it will start slowing to a halt.}}&lt;br /&gt;
{{CodeDocDetailParam|abResetSpeed|bool|if the previous speed should be reset.}}&lt;br /&gt;
{{CodeDocDetailReturn|void|}}&lt;br /&gt;
{{CodeDocDetailBottom}}&lt;/div&gt;</summary>
		<author><name>Archivist</name></author>
		
	</entry>
</feed>