Scriptname FollowerDodgeScript Extends MagicEffectActor Property myCombatTarget
Scriptname PlayerDodgeScript Extends MagicEffectActor Property myFollower AutoActor Property myFollowerCombatTarget AutoFollowerDodgeScript Property myFollowerDodgeScript AutoOnEvent Whatever myFollowerDodgeScript = myFollower as FollowerDodgeScript myFollowerCombatTarget = myFollowerDodgeScript.myCombatTargetEndEvent
Note that in this example I assume that the Actor Property myFollower in the player's script is already filled with your follower's reference. I also assume that the Actor Property myCombatTarget in the follower's script is already filled with the combat target of your follower.
The names of the script can be the same (or in other words, both actors can have the same script), I just used different names to make it clearer.
To break it down:
FollowerDodgeScript Property myFollowerDodgeScript Auto
Here we create a new Property variable of type FollowerDodgeScript. Just like a Property variable of type Actor can contain an Actor reference, a Property variable of type FollowerDodgeScript can contain a reference to an instance of the FollowerDodgeScript. This Property variable is called myFollowerDodgeScript.
myFollowerDodgeScript = myFollower as FollowerDodgeScript
Here we fill the currently empty Property myFollowerDodgeScript with a reference to the instance of script FollowerDodgeScript that is attached to the Actor whose reference is stored in the Property myFollower.
myFollowerCombatTarget = myFollowerDodgeScript.myCombatTarget
Here we reference to the FollowerDodgeScript instance that we stored in the previous line and grab the value of the variable myCombatTarget in that script, and store it in myFollowerCombatTarget which belongs to the local script.