Setup Guide - Vaei/Vigil GitHub Wiki
[!IMPORTANT] Watch the Video There is no substitute for watching the video, but here's a recap...
- Install Vigil
- Optionally create blueprint from
UVigilComponent
- Add Vigil Component to your PlayerController
- Assign targeting data to the component
- Add an abilitysystem and
GiveAbility
(do not activate) on EventPossessed
- Optionally change the ability's
NetExecutionPolicy
fromLocalPredicted
toLocalOnly
if you don't want it to run on server - Use
log logvigil verbose
andlog logvigil veryverbose
for debugging - In Event
ReceiveControllerChanged
useFindVigilComponentForController
and bind toOnVigilTargetsReady
andOnVigilFocusChanged
- From
OnVigilTargetsReady
callVigilDrawDebugResults
- Add Trace Channel called Interaction, default to Ignore (based on the video, your project might want something different)
- Duplicate
VigilTargeting
and assign the new Interaction channel toCollision Channel
forVigil Target Selection
- Change your Vigil Component to use your duplicated targeting data
- Make sure your objects overlap the Interaction channel
[!NOTE] Seriously, watch the video, these are basically cliff notes and miss tons of stuff