Garry's Mod Wiki

Revision Difference

saverestore.WriteVar#512770

<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="save" type="ISave">The save object to write the variable to.</arg>⤶ </args>⤶ </function>⤶ ⤶