LittleBaron Posted November 8, 2012 Share Posted November 8, 2012 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 More sharing options...
Ghaunadaur Posted November 8, 2012 Share Posted November 8, 2012 Did you try to change the property to ReferenceAlias instead of Alias? ReferenceAlias Property Staff Auto Event OnContainerChanged(ObjectReference NewC, ObjectReference OldC) ObjectReference OStaff = Staff.GetReference() EndEvent Link to comment Share on other sites More sharing options...
LittleBaron Posted November 8, 2012 Author Share Posted November 8, 2012 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 More sharing options...
Recommended Posts