— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
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)
Argument | Description | Type | Required |
---|---|---|---|
entity | Entity that will have its light enabled or disabled. | Entity | Yes |
blocks_sight | Determines if the entity's blocks line of sight. | Boolean | Yes |
Use the corresponding “Blocks Line of Sight” property on the Model Properties panel to set its initial value. For example, a closed door should initially block the player's sight.
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.