has_tag
Check if an object owns a specific gameplay tag and return a boolean. Verify the tag exists first, then use it for single-tag state checks like stunned or alerted.
Instructions
Does this object own this gameplay tag: the single-tag state check (is it stunned, is it alerted, is it a valid target) as a plain bool. The cheapest of the tag predicates -- has_any_gameplay_tags / has_all_gameplay_tags / has_none_gameplay_tags take a list, get_object_tags returns everything. Verify the tag exists first (find_gameplay_tag): an unregistered string becomes an empty tag and returns false exactly like a genuine miss.
Returns: { object_path: string, tag_name: string, has_tag: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag_name | Yes | Name of the tag to check for | |
| object_path | Yes | Path or name of the object to check |