Kill Actor - Papyrus

Post » Mon Jan 14, 2013 8:51 pm

I'm having a seriously hard time understanding papyrus...

I have this script:

Spoiler


Scriptname gdadotMessageBox01 extends ObjectReference

Auto State Trigger

Event OnTriggerEnter(ObjectReference triggerRef)
Actor actorRef = triggerRef as Actor
if (actorRef == game.GetPlayer())
utility.wait(5)
Debug.MessageBox("Blah blah blah blah.")
gotoState ("done")
endif
EndEvent

endState

STATE done

endSTATE

Besides all this, I want this script to kill a certain actor. How do I add that into my script? I cannot get it working....
User avatar
lauraa
 
Posts: 3362
Joined: Tue Aug 22, 2006 2:20 pm

Post » Tue Jan 15, 2013 5:35 am

Where are you trying to insert the kill command? What isn't working? Are you receiving that messagebox?
User avatar
Hope Greenhaw
 
Posts: 3368
Joined: Fri Aug 17, 2007 8:44 pm

Post » Mon Jan 14, 2013 10:42 pm

Where are you trying to insert the kill command. What isn't working? Are you receiving that messagebox?
I want an actor to die before the utility.wait command.

I don't understand how to do it. The script won't compile. I've tried to do it several ways, starting off with doing it the Oblivion way (XXX.kill) but that didn't work.
User avatar
Nicola
 
Posts: 3365
Joined: Wed Jul 19, 2006 7:57 am

Post » Tue Jan 15, 2013 7:58 am

I want an actor to die before the utility.wait command.

I don't understand how to do it. The script won't compile. I've tried to do it several ways, starting off with doing it the Oblivion way (XXX.kill) but that didn't work.

not kill
kill()
User avatar
Kanaoka
 
Posts: 3416
Joined: Fri Jun 16, 2006 2:24 pm

Post » Mon Jan 14, 2013 9:18 pm

I want an actor to die before the utility.wait command.

I don't understand how to do it. The script won't compile. I've tried to do it several ways, starting off with doing it the Oblivion way (XXX.kill) but that didn't work.
If in doubt, make use of the http://www.creationkit.com/Category:Papyrus page. It's invaluable!
User avatar
Alyna
 
Posts: 3412
Joined: Wed Aug 30, 2006 4:54 am


Return to V - Skyrim