setBirdWingBeatTime
Client-side
Changes how fast a managed bird flaps.
Syntax
bool setBirdWingBeatTime(bird theBird, float time)Arguments
theBirdbirdManaged bird element.
timefloatWing beat period. Must be greater than zero.
Returns
true when applied; false for an invalid element or value.
Ownership and lifecycle
A bird belongs to the client resource that created it and is removed when that resource stops. Birds fade near their render distance instead of being destroyed, and a dimension or interior mismatch hides them while keeping the element alive.
Important behavior
- The three presets differ partly by wing beat, so this is what makes a seagull read differently from a desert bird.
OOP aliases
bird:setWingBeatTime(time)bird.wingBeatTime
Where this comes from
SOURCECLuaBirdDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaBirdDefs.cpp INTRODUCED / EXTENDED23fedfbc9Read the commit and why the change was made TEST RESOURCE bird-test test-resources/bird-test
RELATED NEON APIS
Read the system guide →