Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)ifif (akAggressor.GetEquippedItemType(1) == 0);do stuffendifendevent
I get this compile error:
c:\games\steamapps\common\skyrim\Data\Scripts\Source\temp\aadpActorCombatScript.psc(34,20): GetEquippedItemType is not a function or does not exist
c:\games\steamapps\common\skyrim\Data\Scripts\Source\temp\aadpActorCombatScript.psc(34,43): cannot compare a none to a int (cast missing or types unrelated)
is there a way to extract an actor from this akAggressor "object ref"?
I tried this and got another error:
actor attacker
attacker = akAggressor
I get this compile error:
c:\games\steamapps\common\skyrim\Data\Scripts\Source\temp\aadpActorCombatScript.psc(20,0): type mismatch while assigning to a actor (cast missing or types unrelated)

