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

Use the “Blocks Line of Sight” property on the Model Properties panel to set its initial value.

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 Set Entity Blocks Sight function to allow the player to see beyond a door once it has been opened by indicating that the door should no longer block line of sight.


Editor Node:

Visual Demo:

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