September 20, 2022
- The class to which the function belongs:
- Call limit:
Set entity properties. The attributes here refer to some general attributes defined by default in the game, such as maximum HP, movement speed, jump height, etc., as well as special attributes, such as damage value, defense value, damage coefficient, etc. used for the calculation of the default damage formula etc., but not all of the properties in the properties panel of the unit in the editor. allowable hereView the field name corresponding to the related attribute.
- Entity properties of server and client are not synchronized
on the client side of the object
mount script, sets the object's maximum health
this:setProp('maxHp', 60) local maxHP = this:prop('maxHp') print(maxHP)