Scripting/Squirrel/Functions/Player.SetAnim: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "== Syntax == <pre>player.SetAnim</pre> <source lang=squirrel> function onPlayerCommand( player, cmd, text ); if ( cmd == "setanim" ) { player.SetAnim( text.tofloat() )...") |
(→Syntax) |
||
Line 2: | Line 2: | ||
<pre>player.SetAnim</pre> | <pre>player.SetAnim</pre> | ||
== Example == | |||
<source lang=squirrel> | <source lang=squirrel> | ||
function onPlayerCommand( player, cmd, text ); | function onPlayerCommand( player, cmd, text ); |
Revision as of 08:40, 25 July 2014
Syntax
player.SetAnim
Example
function onPlayerCommand( player, cmd, text );
if ( cmd == "setanim" )
{
player.SetAnim( text.tofloat() );
}