-
Notifications
You must be signed in to change notification settings - Fork 94
get_named_entity_prop
Ryzom Core Wiki edited this page Jul 8, 2024
·
4 revisions
title: Get Named Entity Prop description: published: true date: 2023-03-16T23:07:27.132Z tags: editor: markdown dateCreated: 2023-03-16T22:24:10.540Z
The getNamedEntityProp native AI script function retrieves the content of a named entity property. Valid property names for this function are:
- state
- param1
- param2
The name of the entity cannot be retrieved, as it must be known to access the entity.
(content: s)getNamedEntityProp(name: s, prop: s) // getNamedEntityProp_ss_s
- name (string): The name of the named entity.
- prop (string): The property of the named entity to retrieve.
- content (string): The content of the specified field.
($state)getNamedEntityProp("Invasion", "state")
This example code retrieves the content of the state
property of the named entity with the name Invasion
.