This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
set_vision_height [2017/05/22 16:58] – justin | set_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 |
+ | ====Signature: | ||
<code python> | <code python> | ||
set_vision_height(character, | set_vision_height(character, | ||
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' | + | |height|Height of the [[character|character' |
====Example: | ====Example: | ||
- | < | + | < |
- | set_vision_height(player, | + | set_vision_height(player, |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | 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. | + | 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. |
</ | </ | ||