Skip to main content

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

ParameterDescription
BaseObjectThe entity related to the service to be finished (Self or Target).
S1The subject type string: ServiceNpc (entity is the NPC performing the service) or TriggerEntity (entity triggered the service).
S2Optional Service Group ID to filter which services to finish when using TriggerEntity mode.

Examples

DescriptionBaseObjectCommand
Finish the service currently performed by the NPC (Self)SelfFinishService
Finish all Delivery group services triggered by TargetTargetFinishService