Jump to content

Script causing CTD.


Deleted31005User

Recommended Posts

I am having CTD problems in my mod after linking 2 interiors to each other with an "AutoLoadDoor01".

I think its caused by a script I'm using on the first load door, its basically a self made portal that you can activate/deactivate through a pull chain with the following script attached to it:

__________________________________________________

Scriptname LakeviewTorture extends ObjectReference

Int LeverPosition = -1

Event onActivate(objectReference akActivateRef)

if (LeverPosition == -1)
Torture.Enable()
LeverPosition = 1
elseif (LeverPosition == 1)
Torture.Disable()
LeverPosition = -1
endif

endevent

ObjectReference Property Torture Auto

__________________________________________________

 

I dont know much about scripting so I looked at another mod where someone activated lights this way, but it was with a push button and not a pull chain.

The CTD happens randomly when changing between interiors, especially after using the pull chain too much.

Can someone help me plz?

Link to comment
Share on other sites

yes im sure its the script, I just tested it with the marker for the portal being active at start, ran through 20+ times without problem.

The I pulled the lever with that script attached to a few times, got CTD after 2nd time of going through the portal.

 

edit: isnt there a way to activate/deactivate items without using custom made scripts?

 

edit2: nvm im just deleting it, cant release a mod with that kind of bug in it anyway, ill find something else.

Edited by Guest
Link to comment
Share on other sites

  • Recently Browsing   0 members

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