Hey guys,
Im trying to create a combat system but the game must have no mouse. So I need the game to target the enemy when the player collides with its sphere collider. (Trigger).
function OnTriggerEnter()
{
collider.isTrigger = true;
targetWithinRange = true;
}
function OnTriggerExit ()
{
collider.isTrigger = true;
targetWithinRange = false;
}
What can I do to allow this function? + My enemy is a clone called from a handler threat called EnviromentHandler.