This all works fine. I can confirm the quest is started and the actor gets the AI package I have assigned to the alias.
The problem is, I have a script on this alias that is supposed to fire some code OnDeath that refuses to process.
Scriptname phiTestScript extends Quest
ReferenceAlias Property Alias1 auto
Actor Test
Event OnInit()
Test = Alias1.GetActorReference()
EndEvent
Event OnDeath(Actor akKiller)
Debug.Notification("Dead.")
Test.Disable()
Test.Delete()
EndEvent
ReferenceAlias Property Alias1 auto
Actor Test
Event OnInit()
Test = Alias1.GetActorReference()
EndEvent
Event OnDeath(Actor akKiller)
Debug.Notification("Dead.")
Test.Disable()
Test.Delete()
EndEvent
The above script is assigned in the CK to this alias, and the alias property assigned to the same. When the actor assigned to this alias dies, the debug message doesn't fire, and the dead reference is not removed.
According to the http://www.creationkit.com/ReferenceAlias_Script, "ReferenceAliases may also receive http://www.creationkit.com/Actor_Script#Events if they are pointing at an http://www.creationkit.com/Actor_Script." This includes the OnDeath event.
Any ideas why this wouldn't be working?
EDIT: Oops, I just noticed I had the script extending Quest instead of ReferenceAlias. Never mind! /facepalm