Both sides previous revisionPrevious revisionNext revision | Previous revision |
4rpl:commands:seteggorbdata [2021/08/13 16:31] – small typo fix karsten75 | 4rpl:commands:seteggorbdata [2025/02/14 14:57] (current) – external edit 127.0.0.1 |
---|
===== Description ===== | ===== Description ===== |
Sets data on the supplied egg or orb. | Sets data on the supplied egg or orb. |
| |
| The following key values **must be fully lowercased**. |
| |
The possible values in initTable are:\\ | The possible values in initTable are:\\ |
* "payload" : The amount of creeper for the egg to carry. A float. | * "payload" : The amount of creeper for the egg to carry. A float. |
* "moveTo" : The location for the egg to move to. A Vector3. | * "moveto" : The location for the egg to move to. A Vector3. |
* "showPathLine" : If the egg should draw a line to its moveTo position. A bool. | * "showpathline" : If the egg should draw a line to its moveTo position. A bool. |
* "showPathLineColor" : The color of the pathLine, if any. A Vector4. | * "showpathlinecolor" : The color of the pathLine, if any. A Vector4. |
* "bounce" : Whether the orb bounces on the terrain. A bool. | * "bounce" : Whether the orb bounces on the terrain. A bool. |
* "includepseudoterrain" : Whether the orb bounces on pseudoterrain (when bounce is set to true). A bool. | * "includepseudoterrain" : Whether the orb bounces on pseudoterrain (when bounce is set to true). A bool. |
* "releaseondestroy" : If the orb releases its payload when destroyed by a sniper. A Bool. | * "releaseondestroy" : If the orb releases its payload when destroyed by a sniper. A Bool. |
* "attachedto" : Specifies the UID of another egg/orb to create an attachment to. An attachment is a link that binds the orbs together | * "attachedto" : Specifies the UID of another egg/orb to create an attachment to. An attachment is a link that binds the orbs together |
* <color grey><del>"attachedtoobj" : Specifies the name of the obj to use on the attachedto object. Only works if attachedto points to a cmod unit.</del></color> ((Note: this parameter is not functional. As a workaround, continuously set the moveTo parameter to the position of the target unit. To clear the movement, set moveTo to the location of the egg itself.)) | * "attachedtoobj" : Specifies the name of the obj to use on the attachedto object. Only works if attachedto points to a cmod unit. |
| |
| :!: There isn't perfect symmetry between CreateOrb and CreateEgg. CreateEgg doesn't pay attention to "attachedto" or "attachedtoobj". CreateOrb does. SetEggOrbData pays attention to "attachedto" but what it attaches to has to be another egg or orb (otherwise it ignores it). SetEggOrbData does not pay attention to "attachedtoobj" (for either an egg or org). |
| |
===== Examples ===== | ===== Examples ===== |