-
Notifications
You must be signed in to change notification settings - Fork 94
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
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.
(context: c)context()
- context (context): The script context of the NPC group.
(@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.