I’ve been struggling with this for a while now and am really stuck.
Basically what I’m trying to do is have an enemy shoot at a player when the player gets into a trigger zone in front of the enemy at a distance. I’m aware that there is the option to have the player enter a radius before the enemy attacks. But I have obstacles around the level, and I don’t want the enemy to try and shoot the player through an obstacle.
I don’t think I need help actually creating a shooting script for the enemy, I just don’t know where to begin with the trigger system.
submitted by /u/TeebotOg
[link] [comments]
Unity 3D, 2D, VR/AR & Video Engine | News, Chats, Questions, Projects & Info