strange function

Post here if you want to help developing something for FAF.

strange function

Postby ColonelSheppard » 31 Mar 2013, 23:26

can you tell me what's the purpose of this function?

gamedata\faforever\lua\ui\game
Code: Select all
function OnBeat()
    for i,v in _beatFunctions do
        if v then v() end
    end
end

it's maybe superobvious for you but not for me
User avatar
ColonelSheppard
Contributor
 
Posts: 2997
Joined: 20 Jul 2012, 12:54
Location: Germany
Has liked: 154 times
Been liked: 165 times
FAF User Name: Sheppy

Re: strange function

Postby Ze_PilOt » 31 Mar 2013, 23:44

You can add functions to that function (addBeat or something), and they will be executed on each sim update.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: strange function

Postby ColonelSheppard » 31 Mar 2013, 23:49

aaahh thx
User avatar
ColonelSheppard
Contributor
 
Posts: 2997
Joined: 20 Jul 2012, 12:54
Location: Germany
Has liked: 154 times
Been liked: 165 times
FAF User Name: Sheppy


Return to Contributors

Who is online

Users browsing this forum: No registered users and 1 guest