How do I script a weapon that increases unit count?
Moderator: Moderators
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
How do I script a weapon that increases unit count?
I want to make a wepon/buff sorta thing that increases the unit count by like adding 20 reinforcments. I would guess it has something to do with the lua but i am vary new to editing luas help please.
- [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: How do I script a weapon that increases unit count?
Make your weapon create/drop/deploy some type of object. Using the Lua, when that object is created/dropped/deployed, destroy it and use AddReinforcementCount(<object's team>, 20) For scripting help, read the scripting document from the mod tools.
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
