Jump to content

Creation Kit Platformhelpers/Simple elevator master borked? (SOLVED) but have a small scripting question)


Recommended Posts

Hi all!

Since the FOLON mod came out I started playing Fallout again. As always I played around 8 hrs of the mod and already wanted to make my own customized layer again.

However having done a lot of interior cell building in the past where the platformhelper and simple elevator master were my go to to get stuff moving and displaycases coming out of the floor etc... I can't even get a simple platform elevator to work and it's doing my head in.

I made a seperate account to be able to use my steam account for the creation kit and have my FOLON playthrough seperated on a different account.

 

My question is:

Is it me? I've spent one and a half days double checking references and trying different button but NYET. While it can always be a skill issue i've never had problems doing it in the past.

 

1) attach platform to helper

2) attach helper to master (custom 1)

3) attach button to master  (custom 2)

4) attach platform to master (custom 5)

Am I missing something? Did something change?

 

EDIT: OMG i am an idiot. Forgot I had to reload the cell for it to update and i always loaded in in front of the button SMH.

Anyway, now that we have established that I am not the sharpest tool in the shed i was wondering i someone could help me with a small script edit for my actual purpose for the platformhelper.

Im basically making a large diesel engine inside my layer (for power) although it's not really working it has pistons going up and down and rotating bits.

Question: Is there someone who could help me with a script that makes the pistons keep going up and down until the butten has been pressed again?

Edited by MjrMalfunktion
idiocy
Link to comment
Share on other sites

Quote

Question: Is there someone who could help me with a script that makes the pistons keep going up and down until the butten has been pressed again?

Reference them and use LinkCustom##

Link to comment
Share on other sites

What do you mean? how its set up now is that when I press the buttons, the pistons go up and stay there until i press the button again, what I'm after is that they enter an up and down loop until deactivated. Nothing in the custom links seems to provide that option. I'm trying to edit a button to emit a 'pulse' through script but so far it's not working.

Link to comment
Share on other sites

I got the objects going up with a buttonpress, and going down with a buttonpress as i stated in my edit. The video you linked is my source for this aswel.

What i am specifically after is that i press the button, everything keeps going up and down untill i press the button again. So it looks like the engine is running. Not *press* going up *press* going down,... So im looking for a activator that goes on and off constantly.

 

ScriptName StrobeButtonScript extends ObjectReference

Bool Property bStrobeActive = False Auto
Float Property StrobeInterval = 0.5 Auto  ; Interval between activations in seconds
ObjectReference Property TargetReference Auto  ; Reference to the object to strobe (could be the button itself or an enable marker)

Event OnActivate(ObjectReference akActionRef)
    if bStrobeActive
        bStrobeActive = False  ; Stop the strobe if it's already active
    else
        bStrobeActive = True
        StartStrobe()
    endif
EndEvent

Function StartStrobe()
    while bStrobeActive
        ; Strobe effect: Enable and then disable the target reference
        if TargetReference.IsEnabled()
            TargetReference.DisableNoWait()
        else
            TargetReference.EnableNoWait()
        endif

        ; Wait for the specified interval before triggering again
        Utility.Wait(StrobeInterval)
    endwhile
EndFunction

Thats what i gonna try. Putting an enable marker (or another button) in between the button and the elevator master. If it works i can us it to make strobe lights too.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...