Soldier.moveTo 79

Moves the soldier to a specified position using CoverPosition with a new DestinationWithoutCover based on the given position and current pose.


Return value

Return TypeDescription
voidThis function doesn't return anything

Parameters

ParameterTypeDescription
1vec3The target position.

Examples

Give a destination to a Soldier

soldier.moveTo(vec3(10, 0, 5));

Back to Scripting API