PreloadTargetArea - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Preloads the target area for the calling ref. If the ref is a teleport door linked to an interior or exterior, the teleport location is the preloaded area. If a non-teleport ref is in an exterior, its location is used. The function will fail for other refs and if called to preload an exterior while the player is in an exterior.

Syntax[edit | edit source]

Function PreloadTargetArea() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Start loading up the area outside the door
ExitDoor.PreloadTargetArea()

Notes[edit | edit source]

You can use the console command "MGO Cell" to see which cells are loaded by the command.

See Also[edit | edit source]