Unsolved Duped Prefabs Losing LUA Trigger Functionality?!

Discussion in 'World Editor' started by King Games, Jun 7, 2025 at 8:13 PM.

  1. King Games

    King Games
    Expand Collapse

    Joined:
    Feb 26, 2018
    Messages:
    101

    So I'm using LUA Triggers at the end of my Ramp.dae objects for affects.
    These series of pre-made Ramp Props, Are Separately Packed Into Prefabs, combining each ramp
    with its corresponding LUA Trigger that gives various affects. I Tried This as a First Approach,
    To Make It Easy For Players To duplicate Ramps With The Lua Trigger Attached.

    The issue is when players go to duplicate a prefab, to place more of the same
    ramp objects in the scene, the LUA Trigger is not included with it/within the duplicated prefab.
    Only the original prefab will have the LUA Trigger if that makes sense.

    So I'm trying to make it easy for people
    to set up the level however they want by moving
    around and placing and/or duplicating these Ramp.dae objects
    that have LUA Trigger Boxes at the tips of the jumps, with simple functions.

    So i figured that's the best route to combine these affects to the objects.

    But would there be any possible way to pair these LUA functions to
    these objects another way, permanently, or at least sticky enough that players
    can duplicate the ramp and trigger as one without error?​
     
  2. AlexKidd71

    AlexKidd71
    Expand Collapse

    Joined:
    Mar 16, 2022
    Messages:
    512
    If you copy your prefab I’m pretty sure some name or id the trigger is referring to changes. Then you have to change it in the copied trigger accordingly.
     
  3. King Games

    King Games
    Expand Collapse

    Joined:
    Feb 26, 2018
    Messages:
    101
    Ii wont duplicate at all, it actually breaks and removes the orginal lua trigger for the orginal prefab, and only duplicated the ramp leaving two ramps and no LUA, its a nasty bug i guess. Wish there was another method
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice