context - ryzom/ryzomcore GitHub Wiki


title: Context description: published: true date: 2023-03-13T02:09:03.113Z tags: editor: markdown dateCreated: 2023-03-13T02:08:59.408Z

context

The context native AI script function returns the script context of the current or specified group. This is useful when one or more additional contexts need to be passed to a function as a variable.

Syntax

(context: c)context()

Return Value

  • context (context): The script context of the NPC group.

Example

(@groupContext)context();

This example code retrieves the script context of the current group and stores it in a variable.

(@groupContext5)npc_group_5.context();

This example code retrieves the script context of "npc_group_5" and stores it in a variable.

⚠️ **GitHub.com Fallback** ⚠️