User Tools

Site Tools


set_entity_blocks_sight

This is an old revision of the document!


Set Entity Blocks Sight


Specifies whether or not the entity should block a character's line of sight. This is used by the experimental fog of war feature and will be used in other line of sight calculations in the future.

set_entity_blocks_sight(entity, blocks_sight)
ArgumentDescriptionTypeRequired
entityEntity that will have its light enabled or disabled.EntityYes
blocks_sightDetermines the light's state (on or off).BooleanYes

Lock Camera must be called before using this function to prevent the player from manually controlling the camera.

Example:

set_entity_blocks_sight(self, false)

Results: The camera's angle is instantly adjusted to aim towards the entity with an ID of “chest01”.

Use the Look At Target function to focus on certain characters/events during a cutscene or to indicate to the player that something in the scene has changed.


Editor Node:

Visual Demo:

set_entity_blocks_sight.1511798489.txt.gz · Last modified: 2017/11/27 08:01 by justin