Scriptname __LALLSetObjectiveOnActivRA extends ReferenceAlias  
{Completed quest objective when the reference alias the script is attached to is activated}

Quest Property TheQuest Auto
Int Property ObjectiveToComplete Auto

Event OnActivate(objectReference akActionRef)
TheQuest.SetObjectiveCompleted(ObjectiveToComplete)
EndEvent