You need to add the script to the object reference, rightmost tab.
I'm not sure what you mean.
If I understood you right I need to:
-Double-click on the object that I have placed in my cell.
-Go to the rightmost tab (Scripts).
-Add a script.
Is this correct?
What kind of event would a script like this use?
I'm thinking something like "On Cell Load" -is there an event that does that?
"This function is widely used as part of the included defaultDisableHavokOnLoad script" -by the sound of this there should already be a script available for this that I can use? Where can I find it?
EDIT: I just read magicpanda's post (we posted about the same time.)
With your help I found a script that looks like this:
scriptName defaultDisableHavokOnLoad extends ObjectReferencebool property havokOnHit = TRUE auto{Start Havok Sim when hit? DEFAULT: TRUE}bool property havokOnActivate auto{Start Havok Sim when activated? DEFAULT: FALSE}bool property havokOnZKey auto{Start Havok Sim when grabbed by player? DEFAULT: FALSE}keyword property linkHavokPartner auto{Link with this keyword and that ref will also sim with myself}bool property beenSimmed auto hidden{prevent an object that has been havok'd in-game from going static}EVENT onCellAttach()if (beenSimmed == FALSE && Self.Is3DLoaded()) setMotionType(Motion_Keyframed, TRUE); ;debug.trace("havok disabled on: " + self)endifendEVENTEVENT onLoad()if (beenSimmed == FALSE && Self.Is3DLoaded()) setMotionType(Motion_Keyframed, TRUE); ;debug.trace("havok disabled on: " + self)endifendEVENTEVENT onActivate(ObjectReference triggerRef)if havokonActivate == TRUE && beenSimmed == FALSE ReleaseToHavok()endifendEVENTEVENT onHit(ObjectReference var1, Form var2, Projectile var3, bool var4, bool var5, bool var6, bool var7)if havokOnHit == TRUE && beenSimmed == FALSE ReleaseToHavok()endifendEVENTEVENT onGrab()if havokOnZkey == TRUE && beenSimmed == FALSE ReleaseToHavok()endifendEVENTFUNCTION ReleaseToHavok() beenSimmed = TRUE objectReference myLink = getLinkedRef(linkHavokPartner) if myLink != NONE defaultDisableHavokOnLoad linkScript = myLink as defaultDisableHavokOnLoad if (linkScript) && (linkScript.beenSimmed == FALSE) linkScript.ReleaseToHavok() endif endif setMotionType(Motion_Dynamic, TRUE) Self.ApplyHavokImpulse(0, 0, 1, 5); Debug.Trace("Released Havok.")endFUNCTIONHow can I add it to a certain, placed object in my cell?