I am trying to use this to attach a follower to a cart, without having to make a seperate script for eah follower (which is the only way I have managed to get this working.) I have seen other scripts use the exact command in the same context, so why will mine refuse to compile?
Here is the script:
Spoiler
Scriptname DC8 extends ReferenceAliasEvent Oninit()if (DriveableCartAlias.IsRunning()) RegisterForSingleUpdate(0.1)endifEndeventEvent OnUpdate()AttachToCart(CompCartAlias.GetActorRef())DriveableCartAlias.Stop()Endeventfunction AttachToCart(bool bDoAttach)if bDoAttach CompCartAlias.GetActorRef().SetVehicle(DriveableCart1) Utility.Wait(0.1) Debug.SendAnimationEvent(CompCartAlias.GetActorRef(), "IdleCartPrisonerCIdle") Utility.Wait(0.1)endifendfunctionObjectReference property DriveableCart1 AutoQuest property DriveableCartAlias AutoReferenceAlias Property CompCartAlias Auto
I have also tried defining the actor at the start of the script,
Actor Follower = CompCartAlias.GetActorRef()
But that too refuses to compile.
Now getting
"GetActorReference is not a property on script referencealias or one of its parents"with the below mentioned fixes. Still won't work.

