<?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=Pindrought</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=Pindrought"/>
	<link rel="alternate" type="text/html" href="https://dev.playonset.com/wiki/Special:Contributions/Pindrought"/>
	<updated>2026-04-24T08:21:45Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetCameraForwardVector&amp;diff=3506</id>
		<title>GetCameraForwardVector</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetCameraForwardVector&amp;diff=3506"/>
		<updated>2020-01-15T00:02:42Z</updated>

		<summary type="html">&lt;p&gt;Pindrought: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetCameraForwardVector()}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncNoParam}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
-- client&lt;br /&gt;
x, y, z = GetCameraForwardVector()&lt;br /&gt;
AddPlayerChat(&amp;quot;X: &amp;quot; .. x)&lt;br /&gt;
AddPlayerChat(&amp;quot;Y: &amp;quot; .. y)&lt;br /&gt;
AddPlayerChat(&amp;quot;Z: &amp;quot; .. z)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
{{CameraFunctions}}&lt;/div&gt;</summary>
		<author><name>Pindrought</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetTime&amp;diff=3505</id>
		<title>SetTime</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetTime&amp;diff=3505"/>
		<updated>2020-01-14T19:32:05Z</updated>

		<summary type="html">&lt;p&gt;Pindrought: fixed issue with event names not matching between server/client code&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Set the specified time for the client.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetTime(time)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|time|Float value between 0 to 24.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;gt;&lt;br /&gt;
-- server side&lt;br /&gt;
AddCommand(&amp;quot;time&amp;quot;, function(player, player_time)&lt;br /&gt;
	if player_time == nil then&lt;br /&gt;
		return AddPlayerChat(player, &amp;quot;Use /time &amp;lt;0-24&amp;gt;&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	player_time = tonumber(player_time)&lt;br /&gt;
&lt;br /&gt;
	if player_time == nil or player_time &amp;lt; 0 or player_time &amp;gt; 24 then&lt;br /&gt;
		return AddPlayerChat(player, &amp;quot;Parameter \&amp;quot;time\&amp;quot; value should be between 0-24&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	CallRemoteEvent(player, &amp;quot;ClientSetTime&amp;quot;, player_time)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
-- client side&lt;br /&gt;
AddRemoteEvent(&amp;quot;ClientSetTime&amp;quot;, function(time)&lt;br /&gt;
	SetTime(time)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
* [[GetTime]]&lt;/div&gt;</summary>
		<author><name>Pindrought</name></author>
	</entry>
</feed>