Jump to content

Activator script help!


bronzeP

Recommended Posts

Hi folks, im new here in the modder scene and i tried to use a gravestone as activator so i looked under activator and found this gravestone (RTGravestone01). I used the creation kit scripting tut for beginner to make a script with a simple messagebox. saved it, script succeded, but in the game i can't activate it, why?

 

Here is the code:

 

Scriptname Adam2 extends ObjectReference

{This is my very first script!}

 

Event OnActivate(ObjectReference akActionRef)

Debug.MessageBox("test")

endEvent

Link to comment
Share on other sites

Hi folks, im new here in the modder scene and i tried to use a gravestone as activator so i looked under activator and found this gravestone (RTGravestone01). I used the creation kit scripting tut for beginner to make a script with a simple messagebox. saved it, script succeded, but in the game i can't activate it, why?

 

Here is the code:

 

Scriptname Adam2 extends ObjectReference

{This is my very first script!}

 

Event OnActivate(ObjectReference akActionRef)

Debug.MessageBox("test")

endEvent

 

try this:

 

Scriptname Adam2 extends ObjectReference  
{This is my very first script!}

Event OnActivate(ObjectReference akActivateRef)
        if activateRef == Game.GetPlayer() 
	 Debug.MessageBox("test")
endEvent

Edited by azza1989
Link to comment
Share on other sites

  • Recently Browsing   0 members

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