2
edits
(Note bug in the engine that must be worked around when using PlaceAtMe for certain objects) |
m (Forgot disable part) |
||
Line 74: | Line 74: | ||
</li> | </li> | ||
<li> | <li> | ||
Objects created through runtime scripting are not hooked up to physics events like [[OnTriggerEnter - ObjectReference|OnTriggerEnter]] until the cell reloads if the object's base form does not already exist in the cell on cell load. [https://forums.nexusmods.com/topic/13458233-physics-events-not-enabled-for-spawned-objects-until-cell-reload/] This can be worked around by calling [[Enable - ObjectReference|Enable]] on the object, which will immediately update the engine. Since non-physics events like [[OnInit]] function correctly, this can easily be rectified by | Objects created through runtime scripting are not hooked up to physics events like [[OnTriggerEnter - ObjectReference|OnTriggerEnter]] until the cell reloads if the object's base form does not already exist in the cell on cell load. [https://forums.nexusmods.com/topic/13458233-physics-events-not-enabled-for-spawned-objects-until-cell-reload/] This can be worked around by calling [[Disable]] and then [[Enable - ObjectReference|Enable]] on the object, which will immediately update the engine. Since non-physics events like [[OnInit]] function correctly, this can easily be rectified by re-enabling the object in [[OnInit]] on the spawned object. | ||
</li> | </li> | ||
</ul> | </ul> |
edits