Execute_FinishService
Description
Finishes an active service associated with the BaseObject entity. The subject type (S1) determines whether the entity is treated as the service NPC or as the trigger entity.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The entity related to the service to be finished (Self or Target). |
| S1 | The subject type string: ServiceNpc (entity is the NPC performing the service) or TriggerEntity (entity triggered the service). |
| S2 | Optional Service Group ID to filter which services to finish when using TriggerEntity mode. |
Examples
| Description | BaseObject | Command |
|---|---|---|
| Finish the service currently performed by the NPC (Self) | Self | FinishService |
| Finish all Delivery group services triggered by Target | Target | FinishService |
Back to Command FinderSearch and filter all 399 Script Execution documents