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!

Question Just need some simple script help

Johnny Smitherson

New Member
Messages
4
So I am really new to modding and I was just wondering if I could get some help with my mod. I am making a mod that uses an elevator master and I have buttons linked to the elevator master to activate the elevator, but I now want to make the elevator automatic, that is, when you enter the elevator it activates automatically. I added a trigger box to the place where I want the player to activate the elevator, but no matter what script I use nothing happens, my script compiles but it will not work.

The first thing I tried is having the trigger box activate the button that is linked to the elevator, the elevator does indeed work when I press the button manually.

First I tried adding a script to the Trigger Box that uses the button (which is an activator) as an object reference property :

I named the button IntermediateButton01

Event OnTriggerEnter(ObjectReference akActionRef)

Actor kPlayerRef = Game.GetPlayer()

IntermediateButton01.Activate(kPlayerRef)

EndEvent

I also tried the same script except with the additional bool value "true": IntermediateButton01(kPlayerRef, true)
Neither of these worked.

The next thing I tried is instead of adding a script to the trigger box, adding a script to the button and using the trigger box as an object reference property:

Event OnTriggerEnter(ObjectReference akActionRef)

Actor kPlayerRef = Game.GetPlayer()

Self.Activate(kPlayerRef)

EndEvent

I again also tried with the bool value "true"
Neither of these worked either.

The last thing I tried is adding the script to the elevator master itself and again using the trigger box as an object reference property



Event OntriggerEnter(ObjectReference akActionRef)

Actor kPlayerRef = Game.GetPlayer()

Self. activate(kPlayerRef)

Endevent

Again I also tried with the bool value"true"

None of the scripts above worked, They all compiled, but none of them work
Does anyone know how to do what I am trying to do?
 
Top