User Tools

Site Tools


4rpl:commands:createegg

Differences

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

Link to this comparison view

Next revision
Previous revision
4rpl:commands:createegg [2021/01/08 16:01] – external edit 127.0.0.14rpl:commands:createegg [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 6: Line 6:
  
 ===== Description ===== ===== Description =====
-Creates an egg at the specifid position. The init params control it'content, it initial velocity, and its behavior.+Creates an egg at the specified position. The init params control its content, its initial velocity, and its behavior.
 The egg's UID is pushed to the stack after this call. If the egg is not created (because of the egg limit), a value of -1 is returned. The egg's UID is pushed to the stack after this call. If the egg is not created (because of the egg limit), a value of -1 is returned.
 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.
   * "velocity" : The initial velocity of the orb. A Vector3.   * "velocity" : The initial velocity of the orb. A Vector3.
-  * "moveTo" : The location for the egg to move to. A Vector3. +  * "moveto" : The location for the egg to move to. A Vector3. ((Note: For "moveto" to function you have to use SetEggOrbData on the created Egg's UID. Otherwise the Egg will not move to the Vector3 location upon creation. Simply do SetEggOrbData(<-egg <-initData) after CreateEgg passes. -Found in CW4 v2.2.9)) 
-  * "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.
  
 ===== Examples ===== ===== Examples =====
4rpl/commands/createegg.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)