Declaration
func PatrolTo(target entity<Monster>, position Vector3, comeBack bool, style PatrolStyleType)
go
Parameters
Input
| Name | Type | Description |
|---|---|---|
| Target | AI | Targeted AI entities |
| Position | Vector3 | Moving target point |
| Come Back | Bool | Whether to return to the point of departure |
| Style | PatrolStyleType | Whether hostile targets are detected and attacked during patrols |