Jump to content

Having trouble with "GetWeaponType()" function:


0lexan

Recommended Posts

Scriptname AAA2AbilityMEScript extends ActiveMagicEffect

Weapon Property test auto
Actor Property act auto
int WT

Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
	act = akAggressor as Actor
	test = act.GetEquippedWeapon()
	Debug.MessageBox(test.GetWeaponType())
EndEvent 

Hi, I am trying to make a simple script that will report to me the weapon type of the weapon that I was hit with, I am running it through as an ability spell. I have imported SKSE 2.00.16.

I appreciate any help resolving this issue.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...