the Sim Settlements forums!

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Using/Disabling Activators

alcukamo

New Member
Messages
1
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!
 
You should ask for an invite to the discord sever ,many can help you there
 
Top