<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.playonset.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sporny</id>
	<title>Onset Developer Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://dev.playonset.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sporny"/>
	<link rel="alternate" type="text/html" href="https://dev.playonset.com/wiki/Special:Contributions/Sporny"/>
	<updated>2026-04-24T08:44:58Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetDoorPropertyValue&amp;diff=5078</id>
		<title>SetDoorPropertyValue</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetDoorPropertyValue&amp;diff=5078"/>
		<updated>2023-06-16T06:57:18Z</updated>

		<summary type="html">&lt;p&gt;Sporny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server &amp;amp; Client|1.1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Sets a property value for this entity. Useful to store information for individual entities which can be accessed on client and server and across different packages.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetDoorPropertyValue(door, PropertyName, Value, bSync)}}&lt;br /&gt;
{{FuncSyntaxClient|SetDoorPropertyValue(door, PropertyName, Value)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|door|The door identifier}}&lt;br /&gt;
{{FuncParam|PropertyName|Name of the property variable}}&lt;br /&gt;
{{FuncParam|Value|Value can be a boolean, integer, float, string or table}}&lt;br /&gt;
{{FuncParamOptional|bSync|Enable automatic network sync for this property value. Default: &#039;&#039;&#039;true&#039;&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns &#039;&#039;&#039;true&#039;&#039;&#039; on success.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&#039;Lua&#039;&amp;gt;&lt;br /&gt;
AddEvent(&amp;quot;OnPlayerInteractDoor&amp;quot;, function (player, door, bWantsOpen)&lt;br /&gt;
&lt;br /&gt;
	if (bWantsOpen == true and GetDoorPropertyValue(door, &amp;quot;locked&amp;quot;) == true) then&lt;br /&gt;
		AddPlayerChat(player, &amp;quot;Door &amp;quot; .. door .. &amp;quot; is locked!&amp;quot;)&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	SetDoorOpen(door, not bWantsOpen)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
{{Template:DoorFunctions}}&lt;/div&gt;</summary>
		<author><name>Sporny</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetDoorPropertyValue&amp;diff=5077</id>
		<title>GetDoorPropertyValue</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetDoorPropertyValue&amp;diff=5077"/>
		<updated>2023-06-16T06:56:11Z</updated>

		<summary type="html">&lt;p&gt;Sporny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server &amp;amp; Client|1.1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Gets a property value for this entity. Useful to store information for individual entities which can be accessed on client and server and across different packages.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetDoorPropertyValue(door, PropertyName)}}&lt;br /&gt;
{{FuncSyntaxClient|GetDoorPropertyValue(door, PropertyName)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|door|The door identifier}}&lt;br /&gt;
{{FuncParam|PropertyName|Name of the property variable}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns &#039;&#039;&#039;propertyName&#039;&#039;&#039;&#039;s  value.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&#039;Lua&#039;&amp;gt;&lt;br /&gt;
AddEvent(&amp;quot;OnPlayerInteractDoor&amp;quot;, function (player, door, bWantsOpen)&lt;br /&gt;
&lt;br /&gt;
	if (bWantsOpen == true and GetDoorPropertyValue(door, &amp;quot;locked&amp;quot;) == true) then&lt;br /&gt;
		AddPlayerChat(player, &amp;quot;Door &amp;quot; .. door .. &amp;quot; is locked!&amp;quot;)&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	SetDoorOpen(door, not bWantsOpen)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
{{Template:DoorFunctions}}&lt;/div&gt;</summary>
		<author><name>Sporny</name></author>
	</entry>
</feed>