Cover system

Hey there I have been working on a tps cover shooter project but facing some problems with the character getting out of cover . I am using a line trace to check for cover every tick and if the line trace hits a nearby object the character takes cover. However I am not sure how to get him out of the cover automatically when he walks out of the cover(when the cover say the wall ends). Anyone any idea. Any help would be greatly appreciated .

how to get him out of the cover automatically when he walks out of the cover

how are you defining cover? in real life if not blocked by wall then your out of cover so by “when he walks out of the cover(when the cover say the wall ends)” then that would say problem solved. or are you using a variable for example and setting to true when in cover. if your using a variable then its pretty simple if line trace is not hitting a cover object then set in cover to false.

really though just explain a bit more in a more clear way so we can know what your looking to accomplish.

Please have you completed your cover system if so I need help in my own

Yes I have just rougly completed it .Just need to set the animations