Jump to content

FormList broken?


Recommended Posts

So, i've been trying to write a detection script that checks if the player was hit by a specific weapon. However, the script won't work.

 

Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
  if (DaggerList.HasForm(akSource))
     Debug.MessageBox("You got hit by a Dagger.")
  endif
EndEvent

FormList Property DaggerList Auto

 

If i add

Debug.MessageBox("DaggerList has " + DaggerList.GetSize() + " entries.")

it will always print out "DaggerList has 0 entries." even if i also add

DaggerList.AddForm(anything)

 

I did create a FormList containing all the weapons and i did set the correct property for the script, but maybe im missing something else.

 

Any ideas?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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