MoveToPackageLocation - Actor

Member of: Actor Script

Determines where an actor should be placed, based on the running procedure(s) of the actor's current package, and places them there.

Also initializes the actor's behavior graph based on their current package, so they will be posed correctly (in furniture, etc.). (If a pose init is already queued, e.g. for an actor whose 3D was just loaded, we allow the queued one to occur.)

SyntaxEdit

Function MoveToPackageLocation() native

ParametersEdit

None.

Return ValueEdit

None.

ExamplesEdit

; Enable JonPaul and move him immediately to the location for his current package.
; Note that the Enable has to come first.
JonPaul.Enable()
JonPaul.MoveToPackageLocation()

NotesEdit

This is mainly intended for use immediately after Enable, in cases where we want an actor to appear at its package location, rather than its editor location.

See AlsoEdit