User Tools

Site Tools


set_movement_speed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
set_movement_speed [2018/03/16 09:49] justinset_movement_speed [2020/04/25 16:19] justin
Line 2: Line 2:
 ---- ----
  
-Changes the movement speed (in voxels per second) of the specified character.+Changes the movement speed (in [[voxel|voxels]] per second) of the specified [[character]].
  
 ====Signature:==== ====Signature:====
Line 10: Line 10:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|character|Character for which to update the movement speed.|[[Entity]]|Yes| +|character|[[Character]] for which to update the movement speed.|[[Entity]]|Yes| 
-|speed|New movement speed (in voxels per second).|[[Decimal]]|Yes|+|speed|New movement speed (in [[voxel|voxels]] per second).|[[Number]]|Yes|
  
 <WRAP center round info 100%> <WRAP center round info 100%>
-[[Set Animation Speed]] would typically be used along with this function to simultaneously speed up or slow down both the character's walk animation and walking speed.+[[Set Animation Speed]] would typically be used along with this function to simultaneously speed up or slow down both the [[character|character's]] walk [[animation]] and walking speed.
 </WRAP> </WRAP>
  
 ====Example:==== ====Example:====
-<code python>+<code bauxite>
 set_movement_speed(player, 60) set_movement_speed(player, 60)
 </code> </code>
-//Results:// The player's movement speed is changed to 60 voxels per second.+//Results:// The player's movement speed is changed to 60 [[voxel|voxels]] per second.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Set Movement Speed** function to increase the player's speed as part of progressing through the story or to provide a temporary speed boost to a character.+Use the **Set Movement Speed** function to increase the player's speed as part of progressing through the story or to provide a temporary speed boost to a [[character]].
 </WRAP> </WRAP>
  
set_movement_speed.txt · Last modified: 2021/04/21 18:52 by justin