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()
(@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.