Get your own free workspace
View
 

SetActorDestination

Page history last edited by Gamemaster 3 years, 11 months ago

 

SetActorDestination

Usage:

                SetActorDestination(Actor, X, Z)

Description:

The SetActorDestination command allows you to make an NPC walk to a specific point in its zone. This would be useful when creating custom AI systems, or as a scripted event as part of a quest. It will not work on player characters. The required X and Z positions can be determined in the "Zones" tab of the GE by looking at the camera position displayed in the lower right-hand corner.

Example:

                Function Main()
                        // Make the NPC walk to -5, 10
                        SetActorDestination(ContextActor(), -5, 10)
                        Return()
                End Function

Comments (0)

You don't have permission to comment on this page.