Page 1 of 1

Need help with lua setup...again

Posted: Tue Dec 23, 2008 11:03 pm
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:

Re: need help with lua setup...again

Posted: Wed Dec 24, 2008 2:18 pm
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)

Re: Need help with lua setup...again

Posted: Wed Dec 31, 2008 1:57 pm
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.