Click or drag to resize

AvoidanceManagerAddAvoidObjectT Method (FuncBoolean, 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
C#
public static AvoidInfo AddAvoidObject<T>(
	Func<bool> canRun,
	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.
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: AvoidInfo
See Also