43 lines
790 B
HTML
43 lines
790 B
HTML
<HTML>
|
|
<HEAD>
|
|
<A HREF="../index.htm">Call of Duty Script Documentation</A>
|
|
<BR>
|
|
<H1>getweaponslotweapon( <weapon slot> )</H1>
|
|
<BR>
|
|
</HEAD>
|
|
<BODY>
|
|
<H2>Module<PRE>Player</PRE></H2>
|
|
<BR>
|
|
<H2>Summary</H2>
|
|
<BR>
|
|
<PRE>
|
|
Gets the name of 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>
|
|
playerWeapon[0] = level.player getweaponslotweapon("primary");
|
|
</PRE>
|
|
<BR>
|
|
<H2>Minimum Number of arguments: 1</H2>
|
|
<BR>
|
|
<UL>
|
|
<PRE>
|
|
<LI>1 : <weapon slot>: Valid weaponslots are "primary" and "primaryb".</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>
|