Soldier.findCover 128
Finds a cover position near a specified position within a given radius.
Return value
| Return Type | Description |
|---|---|
| void | This function doesn't return anything |
Parameters
| Parameter | Type | Description |
|---|---|---|
| 1 | vec3 | The center position for cover search. |
| 2 | float | The search radius in meters. |
Examples
Example 56
soldier.findCover(vec3(20, 0, 10), 5.0);