/// <param name="spatial">Where to get the <see cref="ISpatial"/> from the blackboard memory.</param> /// <param name="positionSetter">Where the position will be saved in the blackboard memory.</param> public GetSpatialPosition(BlackboardGetter <ISpatial> spatial, BlackboardSetter <Vector3> positionSetter, BehaviorTask child) : base(null, child) { this.spatial = spatial; this.positionSetter = positionSetter; ServiceMethod = DoService; }
/// <param name="entity">Where to get the <see cref="Entity"/> from the blackboard memory.</param> /// <param name="speedSetter">Where the speed will be saved in the blackboard memory.</param> public GetEntitySpeed(BlackboardGetter <Entity> entity, BlackboardSetter <float> speedSetter, BehaviorTask child) : base(null, child) { this.entity = entity; this.speedSetter = speedSetter; ServiceMethod = DoService; }
/// <param name="ped">Where to get the <see cref="Ped"/> from the blackboard memory.</param> /// <param name="vehicleSetter">Where the <see cref="Vehicle"/> will be saved in the blackboard memory.</param> public GetPedCurrentVehicle(BlackboardGetter <Ped> ped, BlackboardSetter <Vehicle> vehicleSetter, BehaviorTask child) : base(null, child) { this.ped = ped; this.vehicleSetter = vehicleSetter; ServiceMethod = DoService; }
/// <param name="pedSetter">Where the <see cref="Ped"/> will be saved in the blackboard memory.</param> /// <param name="pedPredicate">If returns true or is null the ped can be considered for nearest ped.</param> public GetNearestPedToAgent(BlackboardSetter <Ped> pedSetter, float range, Predicate <Ped> pedPredicate, BehaviorTask child) : base(null, child) { this.pedSetter = pedSetter; this.range = range; this.pedPredicate = pedPredicate; ServiceMethod = DoService; }
/// <param name="pedSetter">Where the <see cref="Ped"/> will be saved in the blackboard memory.</param> /// <param name="pedPredicate">If returns true or is null the ped can be considered for nearest ped.</param> public GetNearestPedToPosition(BlackboardSetter <Ped> pedSetter, Vector3 position, float range, Predicate <Ped> pedPredicate, BehaviorTask child) : base(null, child) { this.pedSetter = pedSetter; this.position = position; this.range = range; this.pedPredicate = pedPredicate; ServiceMethod = DoService; }
/// <param name="pedSetter">Where the player's <see cref="Ped"/> will be saved in the blackboard memory.</param> public GetPlayerPed(BlackboardSetter <Ped> pedSetter, BehaviorTask child) : base(null, child) { this.pedSetter = pedSetter; ServiceMethod = DoService; }