AvoidanceManagerAddAvoidObjectT Method (FuncBoolean, FuncVector3, Single, FuncT, Single, PredicateT, FuncT, Vector3, Boolean) |
Runs away from a unit or object if within range.
Namespace:
ff14bot.Managers
Assembly:
RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntax public static AvoidInfo AddAvoidObject<T>(
Func<bool> canRun,
Func<Vector3> leashPointProducer,
float leashRadius,
Func<T, float> radiusProducer,
Predicate<T> objectSelector,
Func<T, Vector3> locationProducer = null,
bool ignoreIfBlocking = false
)
where T : GameObject
Parameters
- canRun
- Type: SystemFuncBoolean
The 'can run' condition. - leashPointProducer
- Type: SystemFuncVector3
The leash center point selector. Unit location if null - leashRadius
- Type: SystemSingle
The max distance to run from leash. - radiusProducer
- Type: SystemFuncT, Single
The distance to avoid - objectSelector
- Type: SystemPredicateT
The object selector. - locationProducer (Optional)
- Type: SystemFuncT, Vector3
The location selector - ignoreIfBlocking (Optional)
- Type: SystemBoolean
If set to true the object will be ignored if no path can be generated around it
Type Parameters
- T
Return Value
Type:
AvoidInfoSee Also