Hi
Is am getting a biut puzzled
I am working on a OderTag.
So making a ProfileBehavior with the usual suspects
I know from the log message that it actually goes into this action
But then I do not see any movement or path request.
Vector is also checked and has valid coordinates.
Any idea why my Char is still standing without even moving a toe.
I hope making the Vector inside the action isn't a problem.
Any Ideas are welcome.
Thanks
Is am getting a biut puzzled
I am working on a OderTag.
So making a ProfileBehavior with the usual suspects
I know from the log message that it actually goes into this action
But then I do not see any movement or path request.
Vector is also checked and has valid coordinates.
Any idea why my Char is still standing without even moving a toe.
I hope making the Vector inside the action isn't a problem.
Any Ideas are welcome.
Thanks
Code:
public class MoveTag : ProfileBehavior
...
int Distance=1;
float DistanceToTarget =999;
String Name="Test";
..
protected override Composite CreateBehavior()
{
....
new Decorator(ret => DistanceToTarget > Distance ,
new Action(r =>
{
Logging.Write("I am actually in the Action");
Vector3 Positiion= new Vector3(classvar.x,classvar.y,classvar.z);
CommonBehaviors.MoveAndStop(ret => Position, Distance, stopInRange: true, destinationName: Name),
DistancetoTarget=Core.Me.Location.Distance(Position) ;
})
),
....