Killing an actor from a papyrus dialogue fragment

Post » Tue Dec 24, 2013 3:21 am

Greetings to all.

I am trying to get an actorbase object killed as soon as a dialogue coversation is over.

The functions kill() are found in the Actor script.

I have tried many attempt to get this done, but I cant get the code to excecute in the Papyrus fragment in the dialogue section of a quest,

Can someone please help me?

This is the code fragment

ObjectReference Property Acto Auto

ObjectReference Property archoo Auto

Actor Property archiss Auto

ActorBase Property uni Auto

;BEGIN FRAGMENT Fragment_1
Function Fragment_1(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE

; archoo.Disable()
; archoo.Delete()
;archiss.kill()
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

I just want an actor to die by himself when the dialogue is finish. That is all.

User avatar
SamanthaLove
 
Posts: 3565
Joined: Mon Dec 11, 2006 3:54 am

Post » Tue Dec 24, 2013 11:08 am

The dude the player is talking to?

akSpeaker.Kill()

Should do it without the need for properties.

Also for future reference you can't kill an actor base, only an actor as it's an actor that exists in the game world, not an actor base.
User avatar
Anthony Rand
 
Posts: 3439
Joined: Wed May 09, 2007 5:02 am

Post » Tue Dec 24, 2013 11:48 am

Hey THANK YOU VERY MUCH FOR THAT BIT OF HELP! I mean it! You don't know how that little discovery had help me solve the other problem I had as well! THANK YOU!

User avatar
T. tacks Rims
 
Posts: 3447
Joined: Wed Oct 10, 2007 10:35 am

Post » Tue Dec 24, 2013 10:09 am

You're welcome :)
User avatar
Amy Smith
 
Posts: 3339
Joined: Mon Feb 05, 2007 10:04 pm


Return to V - Skyrim