Page 1 of 1

On cp capture

Posted: Mon Apr 30, 2007 6:24 am
by Abiter_b
i was wondering how i can make it so when a team captures a certain cp they get 15 bonus reinforcements i already know the adding the reinforcement part

Code: Select all

ATTReinforcementCount = GetReinforcementCount(ATT)
SetReinforcementCount(ATT, ATTReinforcementCount + 15) 
but i dont know how to add the cp capture thing to a con lua

thx in advance :D

RE: On cp capture

Posted: Mon Apr 30, 2007 3:41 pm
by Astute

Code: Select all

conquest:Start()

    OnFinishCaptureName(yourfunction, "thecpname");
    
end

function yourfunction()

     ATTReinforcementCount = GetReinforcementCount(ATT) 
     SetReinforcementCount(ATT, ATTReinforcementCount + 15) 

end
I'ts been a while since i've done scripting, but I'm pretty sure that is what your looking for, or at least along the lines of what your looking for.