Garry's Mod Wiki

Revision Difference

saverestore.WriteVar#518032

<function name="WriteVar" parent="saverestore" type="libraryfunc"> <description>Writes a variable to the save game file that is being saved.</description> <realm>Shared</realm> <args> <arg name="value" type="any">The value to save.&#xA;&#xA;It can be one of the following types: &lt;page&gt;number&lt;/page&gt;, &lt;page&gt;boolean&lt;/page&gt;, &lt;page&gt;string&lt;/page&gt;, &lt;page&gt;Entity&lt;/page&gt;, &lt;page&gt;Angle&lt;/page&gt;, &lt;page&gt;Vector&lt;/page&gt; or &lt;page&gt;table&lt;/page&gt;.</arg>⤶ <arg name="value" type="any">The value to save.⤶ It can be one of the following types: <page>number</page>, <page>boolean</page>, <page>string</page>, <page>Entity</page>, <page>Angle</page>, <page>Vector</page> or <page>table</page>.</arg>⤶ <arg name="save" type="ISave">The save object to write the variable to.</arg> </args> </function>