The getNamedEntityProp native AI script function retrieves the content of a named entity property. Valid property names for this function are:
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
($state)getNamedEntityProp("Invasion", "state")
This example code retrieves the content of the state
property of the named entity with the name Invasion
.