— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
Changes the vision height (in 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.
set_vision_height(character, height)
Argument | Description | Type | Required |
---|---|---|---|
character | Character for which to update the vision height. | Entity | Yes |
height | Height of the character's vision (in voxels). | Number | Yes |
set_vision_height(player, 6);
Results: The player's vision height is changed to a height of 6 voxels.
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.