Jump to content

'GetReference is not a function or does not exist...'


LittleBaron

Recommended Posts

Can anyone tell me what I am missing here that causes this code to not compile? I am always told that 'GetReference is not a Function or does not exist'.

 

I realize that currently the code wouldn't do anything, but it should at least compile.

 

Thanks in advance for any help.

 

 

 

Scriptname LB_AC_TestStaffFindScript extends ObjectReference  

import ReferenceAlias

Event OnContainerChanged(ObjectReference NewC, ObjectReference OldC)

ObjectReference OStaff = Staff.GetReference()

EndEvent

Alias Property Staff  Auto  

Link to comment
Share on other sites

Yes, that was the issue, thank you. I hadn't realized there was a ReferenceAlias Property, and I don't think I understand then why there is an Alias property and under what circumstances you would need that instead... but, no matter now. Thanks again!
Link to comment
Share on other sites

  • Recently Browsing   0 members

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