Difference between revisions of "Talk:Reference Variables"

Jump to navigation Jump to search
321 bytes added ,  13:57, 15 November 2010
imported>QQuix
imported>Diarrhoe
Line 188: Line 188:
:The reason is that the compiler does not know which reference might be stored in the ref var at run time, therefore it cannot determine the script attached to that reference in order to check if there is a var with that name.
:The reason is that the compiler does not know which reference might be stored in the ref var at run time, therefore it cannot determine the script attached to that reference in order to check if there is a var with that name.
:To access vars in other scripts, you must explicitly refer to the reference or quest by its EditorID: MartinRef.playerStatue or Arena.Timer [[User:QQuix|QQuix]] 13:19, 15 November 2010 (EST)
:To access vars in other scripts, you must explicitly refer to the reference or quest by its EditorID: MartinRef.playerStatue or Arena.Timer [[User:QQuix|QQuix]] 13:19, 15 November 2010 (EST)
::Ah thanks. I thought of that possibility as well but I was hoping I just did some mistakes in my scripting method. A pity, since this would provide the opportunity to keeping the script short by guaranteeing the singularity of the reference at the same time.
::[[User:Diarrhoe|Diarrhoe]] 13:57, 15 November 2010 (EST)
Anonymous user

Navigation menu