PreloadTargetArea - ObjectReference

Revision as of 17:39, 18 November 2015 by imported>Plplecuyer (→‎Notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

SyntaxEdit

Function PreloadTargetArea() native

ParametersEdit

None.

Return ValueEdit

None.

ExamplesEdit

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

NotesEdit

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

See AlsoEdit