This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
set_vision_height [2017/05/14 15:31] – external edit 127.0.0.1 | set_vision_height [2021/04/21 18:52] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Changes the vision height (in voxel units) of the specified | + | Changes the vision height (in [[voxel|voxels]]) of the specified |
+ | ====Signature: | ||
<code python> | <code python> | ||
- | set_vision_height(player, 12) | + | set_vision_height(character, height) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |player|Description.|[[String]]|Yes| | + | |character|[[Character]] for which to update the vision height.|[[Entity]]|Yes| |
- | | 12|Description.|[[String]]|Yes| | + | |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 ... | + | 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. |
</ | </ | ||