Montaux Posted June 30, 2012 Share Posted June 30, 2012 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 More sharing options...
Recommended Posts