Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
()delHpDownTrigger(0.5, "onHPDecrease");

addNamedEntityListener_ssf_

Associates a listener with a named entity property. Whenever that field changes the specified user event is triggered. Valid property names are:

  • state
  • param1
  • param2

The name of the entity cannot be listened to because it cannot change. Several listeners (even with the same parameters) can be associated to each property. 

Arguments: s(Name),s(Property),f(user_event_n)->

Parameters:

[in]
Namethe name of the named entity to listen to
[in]
Propertythe property of the named entity to listen to
[in]
user_event_nthe user event to trigger
Code Block
 ()addNamedEventListener("Invasion", "state", 6);