WeightTriggerComponent
Alex Crimi edited this page Mar 23, 2021
·
1 revision
WeightTriggerComponent
works in conjunction with TriggerComponent. When the weight of all overlapping entities passes a certain threshold, the entity's TriggerComponent will be automatically activated. If the total weight falls back beneath the threshold, the TriggerComponent will be deactivated.
When used inside the components
block, the initial state of the component can be configured with the following parameters:
Key | Type | Description |
---|---|---|
threshold | float | The total weight needed to activate the entity's TriggerComponent |
Example:
"WeightTriggerComponent": {
"threshold": 30
}
The following properties are readable by property accessors (eg render state and persistence definitions):
Key | Type | Description |
---|---|---|
currentLoad | float | The current measured weight of all overlapping entities |
Overview
Components
Events
Update Scope
Filtering
Persistence
Variables
Value Resolution
Component Reference
- AgeComponent
- AIChargeComponent
- AIPatrolComponent
- CarryComponent
- ChargeComponent
- ChildLinkedComponent
- CollisionComponent
- ContainableComponent
- ContainerComponent
- CorneringComponent
- DeathComponent
- DestroyOnImpactComponent
- GrabComponent
- HealthComponent
- HitBoxComponent
- HurtBoxComponent
- InputComponent
- InteractableComponent
- InteractionComponent
- InvisibilityComponent
- InvulnerabilityComponent
- ItemActionComponent
- LiftableComponent
- LiftComponent
- MovementComponent
- OpenableComponent
- PhysicsComponent
- PullableComponent
- PullComponent
- PushableComponent
- PushComponent
- RenderComponent
- SafeRespawnComponent
- SelfDestructComponent
- SightComponent
- SpatialComponent
- SpawnComponent
- StatefulComponent
- StickyHitComponent
- StunComponent
- SurfaceComponent
- TerrainAwareComponent
- TerrainComponent
- ThrowComponent
- ThrustComponent
- TransformComponent
- TriggerComponent
- WeightTriggerComponent
- ZComponent
- AutoTetherComponent*
- DialogComponent*
- EquipmentComponent*
- FallComponent*
- ItemContainerComponent*
- LavaSinkComponent*
- LedgeHopComponent*
- RollComponent*
- SinkComponent*
- ShadeFormComponent*
- SwimComponent*
- TerrainDamageComponent*
- TetherableComponent*
- TetherComponent*
- TetherPullComponent*
- ThermalComponent*
Action Reference
- ActivateComponentAction
- AddComponentAction
- AttachComponentAction
- ChildAction
- ComponentAction
- DeactivateComponentAction
- DestroyChildAction
- DestroyEntityAction
- DetachChildAction
- DetachComponentAction
- EventAction
- RemoveComponentAction
- RequestRespawnAction
- ResetComponentAction
- SpawnAction
- StopSoundAction
- ToggleStateAction
- TriggerSoundAction
- StopMovementAction*