How do I script a weapon that increases unit count?

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
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

How do I script a weapon that increases unit count?

Post by skelltor »

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.
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: How do I script a weapon that increases unit count?

Post by [RDH]Zerted »

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.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: How do I script a weapon that increases unit count?

Post by skelltor »

Ok thx :)
Post Reply