letmedownloadjeez Posted October 24, 2016 Share Posted October 24, 2016 (edited) Hey all, I'm working on a spell script to draw "aggro", but I only want it to work on targets who are NOT attacking the caster. What condition/variable do I need to use for this? Scriptname AggroScript extends activemagiceffect function OnEffectStart(Actor akTarget, Actor akCaster) akTarget.StopCombat() akTarget.StartCombat(akCaster) endFunctionThank you! Edit: A way to check if the target is currently attacking the player would work as well, if that's easier. Edited October 24, 2016 by letmedownloadjeez Link to comment Share on other sites More sharing options...
Elias555 Posted October 24, 2016 Share Posted October 24, 2016 >I'm working on a spell script to draw "aggro", but I only want it to work on targets who are NOT attacking the casterWhy? If it makes them attack the player, the player wont know who was affected and who wasn't. Is there more to this? Link to comment Share on other sites More sharing options...
letmedownloadjeez Posted October 24, 2016 Author Share Posted October 24, 2016 >I'm working on a spell script to draw "aggro", but I only want it to work on targets who are NOT attacking the casterWhy? If it makes them attack the player, the player wont know who was affected and who wasn't. Is there more to thisOops, let me clarify. This spell won't be used by the player, but a follower, so that the enemies will attack them instead of the player. Link to comment Share on other sites More sharing options...
FrankFamily Posted October 24, 2016 Share Posted October 24, 2016 No difference, if the npc is already attacking the caster (follower) startcombat won't do any harm. Link to comment Share on other sites More sharing options...
Recommended Posts