Using/Disabling Activators

Discussion in 'Builder's Toolkit' started by alcukamo, Sep 10, 2018.

  1. alcukamo

    alcukamo New Member

    Joined:
    Sep 10, 2018
    Messages:
    1
    Likes Received:
    0

    Hi all! I've recently started work on a Sim Settlements AddOn pack, but ran into a bit of trouble while decorating a plot. I've looked through the pdf tutorials and this site, and tried Googling in general, but haven't found an answer so far, so I'm hoping someone here can point me in the right direction!

    I'm hoping to use activators/triggers to allow the player to interact with things on a recreational lot. As one example, I've got a poker game that the player can "join" once every 24 game hours. I've got the trigger box placed and used the Activator Form Type in the StageItemsSpawn bit of the building plan, but the activator isn't working in game. Do I have to do any special finagling to get an activator script to work on a SS plot? It works perfectly if I place it anywhere else in game.

    I'm also wondering if, once I do get the activator to spawn correctly, I'll be able to correctly disable it with my current script. Will a script that targets a specific reference even work with an object spawned on an SS plot?

    Here's an example of the kind of script I'm trying to implement (with all the middle bits cut out) where I disable and then re-enable the trigger, currently using a specific reference of the activator as the PokerTrigger property:

    ObjectReference Property PokerTrigger Auto Const

    Event OnActivate (ObjectReference akActionRef)

    PokerTrigger.Disable()
    Utility.WaitGameTime( 24 )
    PokerTrigger.Enable()
    Endevent

    Thanks for slogging through all of that. Let me know if any of this is unclear! Hoping someone can point me in the right direction to get this kind of thing working on SS plots!
     
  2. uituit

    uituit Secretary ;) Staff Member Administrator Moderator Support Team Verified Builder Wiki Contributor

    Joined:
    May 24, 2017
    Messages:
    2,504
    Likes Received:
    1,952

    You should ask for an invite to the discord sever ,many can help you there
     
    woodfuzzy likes this.

Share This Page