This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
set_vision_height [2017/05/15 08:55] – justin | set_vision_height [2017/05/22 16:58] – 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. | + | 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. |
<code python> | <code python> | ||
Line 14: | Line 14: | ||
====Example: | ====Example: | ||
<code python> | <code python> | ||
- | 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 ... | + | 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. |
</ | </ | ||