cod2-sdk/docs/ScriptFunctions/Player/setweaponslotweapon.htm

45 lines
851 B
HTML
Raw Permalink Normal View History

2006-04-20 00:00:00 +00:00
<HTML>
<HEAD>
<A HREF="../index.htm">Call of Duty Script Documentation</A>
<BR>
<H1>setweaponslotweapon( &lt;weapon slot&gt; )</H1>
<BR>
</HEAD>
<BODY>
<H2>Module<PRE>Player</PRE></H2>
<BR>
<H2>Summary</H2>
<BR>
<PRE>
Sets the the weapon in the given weapon slot.
</PRE>
<BR>
<H2>Call this function on</H2>
<BR>
<PRE>
The player
</PRE>
<BR>
<H2>Example</H2>
<BR>
<PRE>
level.player setweaponslotweapon("primary", weapon);
</PRE>
<BR>
<H2>Minimum Number of arguments: 2</H2>
<BR>
<UL>
<PRE>
<LI>1 : &lt;weapon slot&gt;: Valid weaponslots are "primary" and "primaryb".</LI>
<LI>2 : &lt;weapon name&gt;: The name of the weapon to use in this slot.</LI>
</PRE></UL>
<H2>Number of optional arguments: 0</H2>
<BR>
<UL>
<PRE>
</PRE></UL>
<BR>
<A HREF="../index.htm">Return to Function List</A><BR>
</BODY>
</HTML>