User Tools

Site Tools


4rpl:commands:seteggorbdata

This is an old revision of the document!


Index

SetEggOrbData

SetEggOrbData(<-eggOrOrb <-initData)

Description

Set's data on the supplied egg or orb. The possible values in initTable are:

  • “payload” : The amount of creeper for the egg to carry. A float.
  • “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.
  • “showPathLineColor” : The color of the pathLine, if any. A Vector4.
  • “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.
  • “bounceshield” : Whether the orb bounces on shields. A bool.
  • “creeperdamps” : If the motion of the orb is slowed when in creeper. A bool.
  • “destroywhenstill” : If the orb should auto destroy when it comes to rest. A bool.
  • “destroywhendrytime” : If -1, then the orb will not auto destroy when out of the creeper. Otherwise, the nubmer of frames that it must be dry before it auto destroys. An Int.
  • “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
  • “attachedtoobj” : Specifies the name of the obj to use on the attachedto object. Only works if attachedto points to a cmod unit. 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.

Examples

Table("payload" 100) ->data
SetEggOrbData(<-data)

Index

4rpl/commands/seteggorbdata.1628809717.txt.gz · Last modified: 2025/02/14 14:56 (external edit)