Difference between revisions of "Bug list"

1,136 bytes added ,  18:47, 17 June 2012
no edit summary
imported>Black RL
imported>Black RL
Line 18: Line 18:


Put the load doors as you normally do but don't check the teleport flag, put a XMarkerHeading in front of the doors (object window -> static), name one XMarkerHeading Objective001 and the other one Objective001A (that way you know that they are connected). Another set of load doors should be called for example Objective002 and Objective002A. See pictures:
Put the load doors as you normally do but don't check the teleport flag, put a XMarkerHeading in front of the doors (object window -> static), name one XMarkerHeading Objective001 and the other one Objective001A (that way you know that they are connected). Another set of load doors should be called for example Objective002 and Objective002A. See pictures:


[[File:CKTUTLoadBug03.jpg]]
[[File:CKTUTLoadBug03.jpg]]


[[File:CKTUTLoadBug04.jpg]]
[[File:CKTUTLoadBug04.jpg]]
Put the following script into the doors, safe object is the bucket, one door has to have 1 in TravelTo and the other has to have 2:
<source lang="papyrus">
Scriptname ACHSafeLoadScript extends ObjectReference
;Written by Black RL, I'm no expert so don't bash
;Works with script ACHSafeLoadCHILDScript
;TravelTo defines objective and writes into the global, you can expand to suite your needs
;Objective001 is the first objective for the load door, Objective001A it's the way back so you keep track of things
;You can expand objective to suite your needs
GlobalVariable Property SafeLoadGlobal Auto
{The global that controls travel objective}
Float Property TravelTo Auto
{1 = Objective001, 2 = Objective001A, 3 = Objective002, 4 = Objective002A, etc....}
ImageSpaceModifier Property ImageSpaceToApply Auto
{Use FAdeToBlackBackImod}
ObjectReference Property SafeObject Auto
{Our object in the safe cell, I use a bucket}
Event OnActivate(ObjectReference akActionRef)
  Debug.Notification("Activated by " + akActionRef)
  SafeLoadGlobal.SetValue(TravelTo)
  ImageSpaceToApply.Apply()
  akActionRef.MoveTo(SafeObject)
EndEvent
</source>
Anonymous user