The copyDynEnergy native AI script function is used to copy energy values from one index to another on all groups that match a specified request. Valid index values for this action are integers between 0 and 3.
The request parameter for this action takes the form of [family-<family_name>] [cellZone-<cellzone_name>]
. It is possible to use wildcards (? and *) in the family and cellzone names.
()copyDynEnergy(Request: s, IndexSrc: f, IndexDst: f) // copyDynEnergy_sff_
[family-<family_name>] [cellZone-<cellzone_name>]
.()copyDynEnergy("family-tribu*", SourceIndex , DestinationIndex)
This example code copies the dynamic energy of all groups defined by the family-tribu* request string from the energy slot specified by IndexSrc
to the energy slot specified by IndexDst
.