Jump to content

[LE] Events not firing


smusini

Recommended Posts

This is a script that i made. To use it, i created a quest that instantly starts and has the player as a Quest Alias, and trough the alias editing window i assigned the script to the player alias.

Scriptname MyTestScript extends ReferenceAlias

int COUNTER = 0;

Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference)
  COUNTER+=1
  Debug.Trace("This actor just equipped a weapon! "+COUNTER)
EndEvent

Event OnSit(ObjectReference akFurniture)
  Debug.Trace("We just sat on " + akFurniture)
EndEvent

Event OnDeath(Actor akKiller)
    Debug.MessageBox("LOL U DIED. U SUCK 3")
EndEvent

Event OnDying(Actor akKiller)
    Debug.MessageBox("LOL U ARE DYING.")
EndEvent

Event OnPlayerBowShot(Weapon akWeapon, Ammo akAmmo, float afPower, bool abSunGazing)
    Debug.Trace("The player fired a dud shot!")
endEvent

Event OnRaceSwitchComplete()
  Debug.Trace("This actor's race has finished changing")
endEvent

OnDeath and OnDying are firing correctly, but everithing else isn't. Is it because the script isn't actually on the player, or is it something else?
Thx for your time

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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