For example, say I want the object to do function XYZ(), I can attach a script to the quest alias that runs this function when the player grabs the object like so:
Scriptname myScript extends ReferenceAliasevent onGrab() XYZ()endEvent()But what if I want XYZ() to run on the object the instant this object gets assigned to the quest alias? I've tried onLoad() but that didn't work. What I need is the equivalent to a Main() function.
