Make a summon count as a companion

Evenin folks, if someone might be able to assist id greatly appreciate it. I was doin some digging and ive read in order for the above to work you can have the summon count as dominated, or as a henchmen and no matter what i seem to try it doesnt seem to be working. Im attempting to alter the Epic Dragon knight spell to summon in seperate from normal summons.
int nDuration = 20;
object oPC = GetLastSpellCaster();
object oDragon = GetNearestObjectByTag( "epicdragonmount", oPC, 1);
effect eSummon;
effect eVis = EffectVisualEffect(460);
effect eDom = EffectCutsceneDominated();
eSummon = EffectSummonCreature("epicdragonmount",481,0.0f,TRUE);
// * make it so dragon cannot be dispelled
eSummon = ExtraordinaryEffect(eSummon);
//Apply the summon visual and summon the dragon
effect eLink = EffectLinkEffects(eSummon, eDom);
ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, eLink,GetSpellTargetLocation(), RoundsToSeconds(nDuration));
// ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDom, oDragon, 0.0f);
DelayCommand(1.3f,ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, eDom,GetSpellTargetLocation(), 0.0f));
DelayCommand(1.0f,ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eVis,GetSpellTargetLocation()));
im trying to apply a Dominate to the creature when its spawned in but it isnt dominated and merely just spawns in. Conversely using
AddHenchman(oPC, oDragon);
instead also does the same thing. Any help is appreciated, thanks yall! Im sure its something simple but its kicking my butt atm.
int nDuration = 20;
object oPC = GetLastSpellCaster();
object oDragon = GetNearestObjectByTag( "epicdragonmount", oPC, 1);
effect eSummon;
effect eVis = EffectVisualEffect(460);
effect eDom = EffectCutsceneDominated();
eSummon = EffectSummonCreature("epicdragonmount",481,0.0f,TRUE);
// * make it so dragon cannot be dispelled
eSummon = ExtraordinaryEffect(eSummon);
//Apply the summon visual and summon the dragon
effect eLink = EffectLinkEffects(eSummon, eDom);
ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, eLink,GetSpellTargetLocation(), RoundsToSeconds(nDuration));
// ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDom, oDragon, 0.0f);
DelayCommand(1.3f,ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, eDom,GetSpellTargetLocation(), 0.0f));
DelayCommand(1.0f,ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eVis,GetSpellTargetLocation()));
im trying to apply a Dominate to the creature when its spawned in but it isnt dominated and merely just spawns in. Conversely using
AddHenchman(oPC, oDragon);
instead also does the same thing. Any help is appreciated, thanks yall! Im sure its something simple but its kicking my butt atm.
0
Comments