Jump to content

Script won't compile


Xerperious

Recommended Posts

Are you starting the game via SKSE? OnActorAction and RegisterForActorAction are both SKSE functions. They will fail to function if SKSE is not running.

 

Try a very simple variation for testing purposes.

Event OnInit()
  RegisterForActorAction(7)
EndEvent

Event OnActorAction(int actionType, Actor akActor, Form source, int slot)
  If actionType == 7 && akActor == Game.GetPlayer()
    Debug.Notification("The player has drawn a weapon or spell")
  EndIf
EndEvent
Link to comment
Share on other sites

  • Recently Browsing   0 members

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