TravelToRef
From GECK
A function added by the JIP NVSE Plugin.
Contents
Description
Forces the calling actor to travel (as in a Travel AI package) to the specified destination reference. The reference must be directly reachable to the calling actor, with no teleport doors in-between.
The 2nd argument flags is optional and may be used to toggle movement settings:
1 Always Run 2 Always Sneak 3 Always Run AND Sneak
Syntax
reference.TravelToRef target:ref flags:int
Example
actorRef.TravelToRef rTargetRef
actorRef.TravelToRef rTargetRef 1