What I'm trying to do, I have a switch, when the player toggles the switch, I would like enabled ref's to be disbanded and, the ones i've set to initially disabled to turn on. I've set up my switch linked to an Xmarker, which has several ref's linked to it by, "Activating parent." (or whatever it's really called.) My script works to ether turn them off or, on but, it doesn't seem to matter if I've set a ref to initially disabled or not. Meaning, anything I've set to initially disabled aren't "initially disabled" They are always showing. :brokencomputer:
Here is my feeble attempt at my script, I couldn't find a suitable vanilla one, not saying it doesn't exist.
scn DCIntWLESwitchPlayerDisablesSCRIPT; This Switch is triggered by the player only and Disables its Linked ref. ; This Switch only gets triggered once.ref targetshort doOnceBegin onActivate if doOnce == 0 set target to getLinkedRef target.disable set doOnce to 1 ;Switch is only set off one time endifEnd
I thought when things were activated by an Xmarker it would affect both enabled and, initially disabled ones.
am I just making a dumb mistake?
thanks for any assistance.
Cev