Soldier.moveTo 183
Moves the soldier to a specified position using CoverPosition with a new DestinationWithoutCover based on the given position and current pose.
Return value
| Return Type | Description |
|---|---|
| void | This function doesn't return anything |
Parameters
| Parameter | Type | Description |
|---|---|---|
| 1 | vec3 | The target position. |
Examples
Give a destination to a Soldier
soldier.moveTo(vec3(10, 0, 5));