Hi everyone! So I'm trying to use aliases to get the game to shove new packages onto an actor as the actor is being assigned into a faction and teleported to another room. Here is the script for the button that triggers the stuff.
Scriptname ZCIVbutton1 extends ObjectReference
Faction Property ZCIVFACTIONprisoner Auto
GlobalVariable Property ZCIVinitiate1 auto
ObjectReference Property ZCIVini001 Auto
ObjectReference Property ZCIVprisonmarkerr Auto
EVENT onactivate(objectReference akActionRef)
float mark1 = ZCIVinitiate1.getvalue()
if mark1 == 1
ZCIVinitiate1.Setvalue(0)
Actor closest1 = Game.FindClosestActorFromRef(ZCIVini001, 5.0)
closest1.moveTo(ZCIVprisonmarkerr)
closest1.SetRestrained(false)
closest1.SetFactionRank(ZCIVFACTIONprisoner, 1)
RegisterForSingleUpdate(1)
else
debug.trace("There is no one in cell 1!")
endif
endevent
So the set faction part works and the teleport works, but I still do not understand how to put the actor into the alias list. I thought that registering for single update and having the alias condition require the faction would be enough, but it does not seem to be the case. The location reference thing I put in doesn't seem to be showing up. Is there a papyrus script that I could use that would just stick the actor I am moving right into the quest alias? I have tried reading the tutorials, but they have not been helpful on my specific matter.
Thanks very much!