On cp capture

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Abiter_b

On cp capture

Post 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
Astute
Rebel Colonel
Rebel Colonel
Posts: 566
Joined: Tue Apr 12, 2005 7:03 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: On cp capture

Post 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.
Post Reply