SearchForCover

You are here:
< All Topics
Table of Contents
agentthe agent object which searches a cover point
rangecover point search range
alwaysCoverif true, the agent only moves to a cover point if the point is valid, instead of moving to a random point.
visibilityCheckLayerMaskRaycast layer mask to check if cover point is actually valid (objects inbetween, can see target)
targetObjectthe target object we want to get in cover
targetLayerNamethe target layer name
coverPointthe resulting cover point

Returns a cover point based on agent position and player position.
(Uses Unity Navmesh)

Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Youtube
Consent to display content from Youtube
Vimeo
Consent to display content from Vimeo
Google Maps
Consent to display content from Google