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

43 lines
727 B
HTML
Raw 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>getNormalizedMovement()</H1>
<BR>
</HEAD>
<BODY>
<H2>Module<PRE>Player</PRE></H2>
<BR>
<H2>Summary</H2>
<BR>
<PRE>
Get the player's normalized movement vector. Returns [-1,1] for X(forward) and Y(right) based on player's input.
</PRE>
<BR>
<H2>Call this function on</H2>
<BR>
<PRE>
The player
</PRE>
<BR>
<H2>Example</H2>
<BR>
<PRE>
movement = self getNormalizedMovement();
</PRE>
<BR>
<H2>Minimum Number of arguments: 0</H2>
<BR>
<UL>
<PRE>
</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>