Knockback with Character Controller

First , i read a lot of answers , but i didn’t find the answer.
My question is in this image:

I want to add a force to Character Controller when trigger on enemy collider .

Thanks in advance

Whatever you use to move your character into the trigger, use the same thing to move it out. You can’t add forces to character controllers, but you can define a velocity Vector that you change with a “force” function.

I don’t get the problem, it kinda sounds like a “Write a script for me please” question.

I wrote it , but it didn’t work

#pragma strict

var velBack:float = 12;

function OnTriggerEnter(collider:Collider){

    if (collider.tag == "Enemy"){
      var dir = (collider.transform.position - transform.position).normalized;
       var characterMotor = collider.GetComponent(CharacterMotor);
       var characterController = collider.GetComponent(CharacterController);