This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
set_movement_speed [2017/05/21 15:37] – justin | set_movement_speed [2020/04/25 16:19] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Changes the movement speed (in voxels per second) of the specified | + | Changes the movement speed (in [[voxel|voxels]] per second) of the specified |
+ | ====Signature: | ||
<code python> | <code python> | ||
set_movement_speed(character, | set_movement_speed(character, | ||
Line 9: | 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' | + | [[Set Animation Speed]] would typically be used along with this function to simultaneously speed up or slow down both the [[character|character' |
</ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
set_movement_speed(player, | set_movement_speed(player, | ||
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Set Movement Speed** function to increase the player' | + | Use the **Set Movement Speed** function to increase the player' |
</ | </ | ||