Skip to content

context

Ryzom Core Wiki edited this page Jul 8, 2024 · 3 revisions

title: Context description: published: true date: 2023-03-16T23:05:33.936Z tags: editor: markdown dateCreated: 2023-03-16T22:21:42.809Z

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.

Clone this wiki locally