======Set Entity Blocks Sight====== ---- Specifies whether or not the [[entity]] should block a [[character|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. ====Signature:==== set_entity_blocks_sight(entity, blocks_sight) ^Argument^Description^Type^Required^ |entity|[[Entity]] that will have its "Blocks Line of Sight" property changed.|[[Entity]]|Yes| |blocks_sight|Determines whether or not the [[entity]] blocks line of sight.|[[Boolean]]|Yes| Use the corresponding "Blocks Sight" property on the [[Model Properties]] panel to set its initial value. For example, a closed door should initially block the player's sight. ====Example:==== set_entity_blocks_sight(self, false); //Results:// The [[entity]] to which the [[script]] is attached will no longer block the player's line of sight. 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:==== {{:wiki:set_entity_blocks_sight_node.png?nolink|}} ====Visual Demo:==== {{:wiki:set_entity_blocks_sight_demo.gif?nolink|}} ~~NOTOC~~