Cover Task

Frocha

Member
I noticed in the cover task the A.I is meant to look for cover on the opposite side of the object. What can be done so the A.I finds the cover normally (not on the opposite side)? Would there be a way to make finding the spot on the cover more specific? Like the left side or the right of it?
 

Justin

Administrator
Staff member
The current cover task can only find cover positions behind other objects so it'll take some scripting in order to get what you want. The current task finds the cover position within Cover.OnStart so I would start to modify there.

If you want a different approach for the Deathmatch AI Kit we find cover positions out of a prepopulated list of available cover points. It'll choose the closest cover position based on a variety of factors and works really well. This task does depend on the character controller but you can see an overview of it here:

 
Top