Need help with lua setup...again
Moderator: Moderators
- jedimaster745
- First Lance Corporal

- Posts: 136
- Joined: Sun Sep 07, 2008 5:05 pm
Need help with lua setup...again
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 
-
Master_Ben
- Lieutenant General

- Posts: 675
- Joined: Wed Nov 12, 2008 9:50 pm
- Projects :: No Mod project currently.
- 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
well if you got the right codes, then here's a code plan:
If object destroyed(CP)
then make team win(ATT)
If object destroyed(CP)
then make team win(ATT)
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Need help with lua setup...again
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.
