Spoiler
Scriptname FunctionTestScript extends ObjectReference;======PROPERTIES=====Message Property Message1 Auto;======EVENTS=====Event OnTriggerEnter(ObjectReference akActionRef)DisplayMessage(Message1)EndEvent;======FUNCTIONS=====function DisplayMessage(Message messageToShow)messageToShow.Show()EndFunction
And it works fine when attatched to a trigger. Acts as expected.
But how would I go about having the function in a separate script, and then accessing it from this one?
I'm wanting a setup like this:
Spoiler
First script:
First script:
Scriptname FunctionTest extends ObjectReferencefunction DisplayMessage(Message messageToShow)messageToShow.Show()EndFunctionSecond script:
Scriptname FunctionTestInfo extends ObjectReference Message Property Message1 AutoEvent OnTriggerEnter(ObjectReference akActionRef)DisplayMessage(Message1)EndEvent
But obviously the "DisplayMessage" function in the second script needs to access the function from the first script.
I read the wiki, and it mentioned something along these lines, but it was for quest scripts, and I couldn't figure out how to rework it to my needs.
Any help would be appreciated.
