get_named_entity_prop - ryzom/ryzomcore GitHub Wiki


title: Get Named Entity Prop description: published: true date: 2023-03-12T12:40:54.155Z tags: editor: markdown dateCreated: 2023-03-12T11:41:24.339Z

getNamedEntityProp

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.

Syntax

(content: s)getNamedEntityProp(name: s, prop: s) // getNamedEntityProp_ss_s

Arguments

  • name (string): The name of the named entity.
  • prop (string): The property of the named entity to retrieve.

Return value

  • content (string): The content of the specified field.

Example

($state)getNamedEntityProp("Invasion", "state")

This example code retrieves the content of the state property of the named entity with the name Invasion.

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