The delNamedEntityListener native AI script function removes a listener from a named entity property. If several listeners with the same parameters are registered, only one is removed.
()delNamedEntityListener(name: s, prop: s, event: f) // delNamedEntityListener_ssf_
()delNamedEntityListener(name: s, prop: s, cbFunc: s) // delNamedEntityListener_sss_
()delNamedEntityListener("Invasion", "state", 6);
This example code removes a listener with user event 6 associated with the named entity "Invasion" and the property "state".
()delNamedEntityListener("Invasion", "state", "onStateChange");
This example code removes a listener with the script function "onStateChange" associated with the named entity "Invasion" and the property "state".