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 selfnType: 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 selfbEnable: 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 selfhit: A boolean indicating whether the boid was hitnil
No description entered
Boids.SetAttractionPoint(entity, point)
entity: An entity, usually selfpoint: A Vec3 table (e.g., {x = 0, y = 0, z = 0})nil
No description entered
Boids.SetFlockParams(entity, tParamsTable)
entity: An entity, usually selftParamsTable: 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 selffPercentage: A number indicating the fade coefficientnil