Need help with making an activator!

Post » Sat Jun 23, 2012 9:27 pm

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
User avatar
Rachel Tyson
 
Posts: 3434
Joined: Sat Oct 07, 2006 4:42 pm

Post » Sat Jun 23, 2012 9:57 pm

plz help me :(
User avatar
R.I.p MOmmy
 
Posts: 3463
Joined: Wed Sep 06, 2006 8:40 pm

Post » Sat Jun 23, 2012 10:42 pm

Make it like this:
Scriptname Adam2 extends ObjectReference{This is my very first script!}Event OnActivate(ObjectReference akActionRef)	 If akActionRef == Game.GetPlayer()		 Debug.MessageBox("test")	 EndifendEvent
User avatar
Nicole Coucopoulos
 
Posts: 3484
Joined: Fri Feb 23, 2007 4:09 am


Return to V - Skyrim