If you want to see more resources like this, become a Patreon supporter!
Key | Value |
---|---|
FLOCK_BIRDS | 0 |
FLOCK_FISH | 1 |
FLOCK_BUGS | 2 |
FLOCK_CHICKENS | 3 |
FLOCK_FROGS | 4 |
FLOCK_TURTLES | 5 |
No description entered
local result = Boids.CreateFlock(entity, nType, tParamsTable)
entity
: An entity, usually self
nType
: An enum member indicating the type of flocktParamsTable
: A table of flock parameters (see Scripts\Entities\Boids\Birds.lua
for an example)nil
No description entered
Boids.EnableFlock(entity, bEnable)
entity
: An entity, usually self
bEnable
: A boolean indicating whether the flock is enabled or disablednil
No description entered
Boids.OnBoidHit(boidEntity, entity, hit)
boidEntity
: A flock entityentity
: An entity, usually self
hit
: A boolean indicating whether the boid was hitnil
No description entered
Boids.SetAttractionPoint(entity, point)
entity
: An entity, usually self
point
: A Vec3 table (e.g., {x = 0, y = 0, z = 0}
)nil
No description entered
Boids.SetFlockParams(entity, tParamsTable)
entity
: An entity, usually self
tParamsTable
: A table of flock parameters (see Scripts\Entities\Boids\Birds.lua
for an example)nil
No description entered
Boids.SetFlockPercentEnabled(entity, fPercentage)
entity
: An entity, usually self
fPercentage
: A number indicating the fade coefficientnil