Call of Duty 4: Scripting Reference - File::OpenFile: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
(New page: {{Function |Version=4 |Name=OpenFile( <filename>, <mode> ) |Module=File |Available |Summary=Open a file for reading, writing, or appending. If successful returns a file number,...)
 
No edit summary
 
Line 10: Line 10:
# &lt;filename&gt; The name of the file to open.
# &lt;filename&gt; The name of the file to open.
# &lt;mode&gt; The file mode. Valid arguments are 'read', 'write' and 'append'.
# &lt;mode&gt; The file mode. Valid arguments are 'read', 'write' and 'append'.
|Notes=Before opening a file, one should wait for the frame end:
<pre>waittillframeend;
openfile(...);</pre>
Reading files on a listen server might work during match start up only, see [http://modsonline.com/Forums-top-162943-0.html here].
}}
}}

Latest revision as of 16:53, 22 August 2012