...
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] | Name | the name of the named entity to listen to |
[in] | Property | the property of the named entity to listen to |
[in] | user_event_n | the user event to trigger |
Code Block |
---|
()addNamedEventListener("Invasion", "state", 6); |