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 revisionPrevious revision
Next revision
Previous revision
set_vision_height [2017/05/15 09:02] justinset_vision_height [2021/04/21 18:52] (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:====
 <code python> <code python>
 set_vision_height(character, height) set_vision_height(character, height)
Line 9: 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, 12)+set_vision_height(player, 6);
 </code> </code>
-//Results:// The player's vision height is changed to a height of 12 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%>
-Use the **Set Vision Height** function to ...+Use the **Set Vision Height** function to give the appearance of the player growing older over time or to create the illusion that the player has shrunk after drinking a potion.
 </WRAP> </WRAP>
  
set_vision_height.1494864120.txt.gz · Last modified: 2017/05/15 09:02 by justin