70 lines
1.9 KiB
Plaintext
70 lines
1.9 KiB
Plaintext
Tree("Root") {
|
|
Composite (Sequence) {
|
|
RunTree ("TestTree")
|
|
RunTree ("MoveTree")
|
|
}
|
|
}
|
|
|
|
Tree ("TestTree") {
|
|
Composite (Sequence) {
|
|
TestScript.StringFunction ("test123")
|
|
TestScript.FloatFunction (1.3)
|
|
TestScript.IntFunction (2)
|
|
TestScript.BoolFunction (True)
|
|
TestScript.EnumFunction (SampleEnum.value0)
|
|
TestScript.PublicFunction ()
|
|
TestScript.PrivateFunction ()
|
|
//TestScript.OverloadedFunction ("test")
|
|
//TestScript.OverloadedFunction (SampleEnum.value1)
|
|
}
|
|
}
|
|
|
|
Tree ("LoopTree") {
|
|
Composite (Sequence) {
|
|
Composite (Marathon) {
|
|
SimpleController.MoveByTimed (0, 0, 1, 0.3)
|
|
SimpleController.MoveByTimed (1, 0, 0, .6)
|
|
}
|
|
Composite (Marathon) {
|
|
SimpleController.MoveByTimed (0, 0, -1, .3)
|
|
SimpleController.MoveByTimed (-1, 0, 0, .3)
|
|
}
|
|
SimpleController.MoveByTimed (-1, 0, 0, .6)
|
|
SimpleController.MoveByTimed (0, 0, -1, .6)
|
|
}
|
|
}
|
|
|
|
Tree ("MoveTree") {
|
|
Composite (Sequence) {
|
|
Composite (Race) {
|
|
Composite (Sequence) {
|
|
Composite (Race) {
|
|
SimpleController.NearTarget("Target1", 1)
|
|
SimpleController.RotateTowards("Target1", 90)
|
|
SimpleController.MoveForward(4)
|
|
}
|
|
Composite (Race) {
|
|
SimpleController.NearTarget("Target2", 1)
|
|
SimpleController.RotateTowards("Target2", 90)
|
|
SimpleController.MoveForward(4)
|
|
}
|
|
Composite (Race) {
|
|
SimpleController.NearTarget("Target3", 1)
|
|
SimpleController.RotateTowards("Target3", 90)
|
|
SimpleController.MoveForward(4)
|
|
}
|
|
}
|
|
SimpleController.Avoid("Player", 3)
|
|
}
|
|
Composite (Race) {
|
|
Composite (Race) {
|
|
SimpleController.Timer(5.0)
|
|
SimpleController.HasDistance("Player", 10.0)
|
|
}
|
|
Composite (Marathon) {
|
|
SimpleController.RotateAway("Player", 90)
|
|
SimpleController.MoveForward(6)
|
|
}
|
|
}
|
|
}
|
|
} |