Jump to content

Dead Actor in Reference Alias - MoveTo(PlayerREF)


kxdace

Recommended Posts

Posted

Hello my beautiful friends I hope everyone is enjoying their fantastic weekend!
Im having a bit of a problem summoning the body of a dead follower using my own home brew follower system. I play with essential off and this of course causes my party members to die from time to time and I cant always find there bodies to resurrect.
So far I have tried the following methods:

 

\\\CODE START\\\
function squadMove()

    int iChoiceA = MSGSquadMove.show()

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;TELEPORT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    if(iChoiceA == 0)
        ;raRia.GetActorReference().getleveledActorBase().MoveTo(PlayerREF)
        raRia.GetActorReference().MoveTo(PlayerREF)
        ;Actor tempA = raRia.GetActorReference()
        ;tempA.MoveTo(PlayerREF)
        ;PlayerREF.placeatme(tempA)
        ;debug.MessageBox(tempA.getleveledActorBase().getName())
        
        ;objRia.MoveTo(PlayerREF)

        raSara.GetActorReference().MoveTo(PlayerREF)
        raFollowA.GetActorReference().MoveTo(PlayerREF)
        raFollowB.GetActorReference().MoveTo(PlayerREF)
    endIf

\\\CODE END\\\
The reference alias is still pointing at this actor after death as the following still brings up the actors name:
debug.MessageBox("Test: " + raRia.GetActorReference().getleveledActorBase().getName())


What am I doing wrong... it seems like such an obvious thing to do.

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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