Event OnHit (ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
bool Function HasKeyword(Keyword akKeyword) native
If akSource.HasKeyword(WeapTypeBow)
bool Function HasKeyword(Keyword akKeyword) native
If akSource.HasKeyword(WeapTypeBow)
endEvent
When I try to compile my script, there are two errors it gives me:
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\DMKillShots.psc(15,5): no viable alternative at input 'Function'
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\DMKillShots.psc(17,1): no viable alternative at input 'If'
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\DMKillShots.psc(17,1): no viable alternative at input 'If'
what does it mean by no viable alternative input?

