GSC reference › Built-in

AddToInterestPool()

Built-in (engine) Server

Add a script event to the sentient's interest pool.

Signature

AddToInterestPool(<value>, <priority>, <lifespan>, <point of interest>, <originator>, [unique])

Parameters

NameRequired?Details
valueRequired Amount the event adds to the pool. (integer)
priorityRequired How important is the event. (integer)
lifespanRequired Time the event stays in the pool. (float)
point of interestRequired Position the AI will investigate. (vector3)
originatorRequired Entity that caused the event.
uniqueOptional Only one of this type can exist in the pool. (integer)

Example (from Treyarch's docs)

point = self AddToInterestPool( 500, 10, 5, ai.origin, ai )

Real uses in BO3's scripts

Not called anywhere in BO3's shipped scripts, so check it works in your mode before relying on it.

Related built-ins

New to GSC?

Start with the basics, or paste a compile error to get the fix.

Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).