User Tools

Site Tools


set_vision_height

This is an old revision of the document!


Set Vision Height


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.

Signature:

set_vision_height(character, height)
ArgumentDescriptionTypeRequired
characterCharacter for which to update the vision height.EntityYes
heightHeight of the character's vision (in voxels).DecimalYes

Example:

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.


Editor Node:

Visual Demo:

set_vision_height.1521218983.txt.gz · Last modified: 2018/03/16 09:49 by justin