Event Capacity
An event capacity is executed after an event happens.
Examples of event capacities
- Is Clicked
- Detects The Entry Of
Event CapacityAn event capacity is executed after an event happens. Examples of event capacities
Function CapacityA function capacity enables to modify the state of an object or check actor's properties. Examples of function capacities
Service CapacityA service capacity enables to modify actor's properties over time. Examples of service capacities
The service capacity has a specific lifecycle. It is a capacity with a beginning and an end. During its execution, you can control what is done and under which conditions the capacity ends. In the image above, there are four functions (Start, Execute, End, and Stop) that you need to implement in JavaScript to create a service capacity.
ExampleIn the following example, a service capacity is created to let a human actor walk to a specific target. The four functions to implement are the following:
|