Need help with lua setup...again

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
User avatar
jedimaster745
First Lance Corporal
First Lance Corporal
Posts: 136
Joined: Sun Sep 07, 2008 5:05 pm

Need help with lua setup...again

Post by jedimaster745 »

once again i have a crazy lua idea, which i dont know if it can be done or not, but it might be. my plans this time are to create a mode where the two cps are capturable and destructable, and it works like regular conquest but if the cp is destroyed, the other team wins. ive got the conquest part all set up, but i need help with the "if your cp blows up you lose" part. if this is possible, please help me. luas arent really my thing :oops:
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Watching your PC over your shoulder. No, the other sholder....

Re: need help with lua setup...again

Post by Master_Ben »

well if you got the right codes, then here's a code plan:

If object destroyed(CP)

then make team win(ATT)
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Need help with lua setup...again

Post by [RDH]Zerted »

You need to read the scripting doc to learn how to do event callbacks/triggers. Setup an event callback to detect when the CP object is destroyed. Use MissionVictory(1) to make team 1 win.
Post Reply