diff --git a/src/lua_followerlib.c b/src/lua_followerlib.c index e982cbf5a..2fded3882 100644 --- a/src/lua_followerlib.c +++ b/src/lua_followerlib.c @@ -35,6 +35,7 @@ enum follower { follower_anglelag, follower_bobamp, follower_bobspeed, + follower_hornsound, // states follower_idlestate, follower_followstate, @@ -63,6 +64,7 @@ static const char *const follower_opt[] = { "anglelag", "bobamp", "bobspeed", + "hornsound", // states "idlestate", "followstate", @@ -134,6 +136,9 @@ static int follower_get(lua_State *L) case follower_bobspeed: lua_pushinteger(L, follower->bobspeed); break; + case follower_hornsound: + lua_pushinteger(L, follower->hornsound); + break; case follower_idlestate: lua_pushinteger(L, follower->idlestate); break;