User Tools

Site Tools


set_vision_height

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
set_vision_height [2018/03/16 09:49]
justin
set_vision_height [2020/04/25 16:06] (current)
justin
Line 2: Line 2:
 ---- ----
  
-Changes the vision height (in voxel) of the specified character. This value determines the camera placement (i.e. the height above the tile on which the player is standing) while in first-person view. Vision height is also used when adjusting the camera to "look at" a particular character.+Changes the vision height (in [[voxel|voxels]]) of the specified ​[[character]]. This value determines the camera placement (i.e. the height above the [[tile]] on which the player is standing) while in first-person view. Vision height is also used when adjusting the camera to "look at" a particular ​[[character]].
  
 ====Signature:​==== ====Signature:​====
Line 10: Line 10:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|character|Character for which to update the vision height.|[[Entity]]|Yes| +|character|[[Character]] for which to update the vision height.|[[Entity]]|Yes| 
-|height|Height of the character'​s vision (in voxels).|[[Decimal]]|Yes|+|height|Height of the [[character|character'​s]] vision (in [[voxel|voxels]]).|[[Number]]|Yes|
  
 ====Example:​==== ====Example:​====
-<​code ​python>+<​code ​bauxite>
 set_vision_height(player,​ 6) set_vision_height(player,​ 6)
 </​code>​ </​code>​
-//​Results://​ The player'​s vision height is changed to a height of 6 voxels.+//​Results://​ The player'​s vision height is changed to a height of 6 [[voxel|voxels]].
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
set_vision_height.txt · Last modified: 2020/04/25 16:06 by justin