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.

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, 12)

Results: The player's vision height is changed to a height of 12 voxels.

Use the Set Vision Height function to …


Editor Node:

Visual Demo:

set_vision_height.1494864120.txt.gz · Last modified: 2017/05/15 09:02 by justin