User Tools

Site Tools


4rpl:commands:seteggorbdata

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
4rpl:commands:seteggorbdata [2021/08/12 23:08] – attachedtoobj does not work Grabz4rpl:commands:seteggorbdata [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 6: Line 6:
  
 ===== Description ===== ===== Description =====
-Set'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.
Line 20: Line 23:
   * "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
-  * <del>"attachedtoobj" : Specifies the name of the obj to use on the attachedto object. Only works if attachedto points to a cmod unit.</del> Notethis parameter is not functionalAs a workaround, continuously set the moveTo parameter to the position of the target unitTo 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 =====
4rpl/commands/seteggorbdata.1628809717.txt.gz · Last modified: 2025/02/14 14:56 (external edit)