InvisibilityComponent - acrimi/Raven GitHub Wiki
InvisibilityComponent
represents an entity's ability to remain hidden to other entities with SightComponents attached. By default, the entity will be invisible to all other entities, but an optional type
can be specified that allows conditional invisibility.
Configuration
When used inside the components
block, the initial state of the component can be configured with the following parameters:
Key | Type | Description |
---|---|---|
type | string | An optional attribute to limit invisibility to certain cases. If defined, the entity will still be visible to entities whose SightComponents contain the same type in their perception attribute, but remain invisible to all others. If omitted, the entity will always be invisible to all other entities. |
Examples:
"InvisibilityComponent": {}
"InvisibilityComponent": {
"type": "ghost"
}
Properties
This component has no exposed properties