Skip to content

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

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.

Clone this wiki locally