However I can't understand why this isn't compiling?
Scriptname CPO_OffensiveCancellingScript extends activemagiceffect;Controls the Offensive Cancelling ability. First starts with an OnHit;event that runs a random percent calculation of 30%. If the calculation;suceeds, staggers the akAgressor.Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)if Utility.RandomInt(1, 100) < 30 SendAnimationEvent(akAgressor,"stagger")endifendEvent
Compile error:
Starting 1 compile threads for 1 files...Compiling "CPO_OffensiveCancellingScript"...e:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\CPO_OffensiveCancellingScript.psc(9,21): variable akAgressor is undefinede:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\CPO_OffensiveCancellingScript.psc(9,2): SendAnimationEvent is not a function or does not existNo output generated for CPO_OffensiveCancellingScript, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on CPO_OffensiveCancellingScript
EDIT: Got rid of the animation error by prefacing it with "Debug." but I still don't know why it can't see what the akAgressor is from the OnHit event.


