Cattle and Crops: Mission Documentation
command: teleportMachine
Teleportiert, ohne die Position zu prüfen, die angegebene Maschine (Implement oder Vehicle) an einen neue Zielposition. Die Maschine wird zusätzlich 2 cm oberhalb der angegeben Position positioniert. Wenn die Maschine ein Implement ist, wird sie gegebenenfalls vorher vom Parent-Fahrzeug getrennt. Wenn die Maschine ein Fahrzeug ist, dann werden gegebenenfalls alle Implements von ihr getrennt und diese an die entsprechenden neuen Teleport-Positionen gebracht, ohne sie automatisch anzuhängen.
Es gibt drei Modi der Zieldefinition: node
, targetId
oder posX
, posY
, …. Es darf nur ein Modus gleichzeitig benutzt werden.
Attribute
Attribute | Type | Value | Beschreibung |
---|---|---|---|
command |
integer |
* |
Id des Commands vom Typ spawnMachine |
Modus 1node |
string |
* |
Name der Node an die die Machine gesetzt werden soll. |
Modus 2targetId |
string |
* |
InfoForTaskAndQuestID der Node an die die Machine gesetzt werden soll. |
Modus 3posX |
float |
* |
Welt-X-Position des Zielpunktes. |
posY |
float |
* |
Welt-Y-Position des Zielpunktes. |
posZ Optional |
float |
* |
Welt-Z-Position des Zielpunktes. Wird Z nicht angegeben wird per DetectHeight die Z-Position ermittelt. |
rotX |
float |
[-360.0 , 360.0 ] |
Rotation um X in Grad |
rotY |
float |
[-360.0 , 360.0 ] |
Rotation um Y in Grad |
rotZ |
float |
[-360.0 , 360.0 ] |
Rotation um Z in Grad |
Beispiel
…
<commands>
<command type="teleportMachine" command="123" node="nameOfTargetNode" />
<command type="teleportMachine" command="456" targetId="bga.silos.silo1" />
<command type="teleportMachine" command="789" posX="-12.3" posY="2000.0" posZ="45.6" rotX="0.0" rotY="17.2" rotZ="-85.5" />
</commands>
…