Is there any way to call Global Events or Game Events via script ?
  • A global event can be called like this:
    ORK.GlobalEvents.Get(index).Call();
    index is the ID/index of the global event (in the ORK editor).

    Calling a game event via script is a bit more complicated - the easiest way would be to set it up as an Event Interaction and calling the StartEvent function:
    eventInteraction.StartEvent(startingObject);
    eventInteraction is an instance of the Event Interaction component, startingObject is a game object that will be used as the starting object (e.g. the player).
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.