How do you set up LUA weapons?

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
Darth_Squoobus
General
General
Posts: 760
Joined: Mon Aug 03, 2009 3:21 am
Projects :: No Mod project currently.
Location: over the hills and far away

How do you set up LUA weapons?

Post by Darth_Squoobus »

While browsing Fiodis's "Unconventional weapons" thread, I learned about something called a LUA weapon, which is a weapon that does something special because of a LUA workaround.


And I wondered: How do you set one up? Because I want to make a Rakghoul plague that kills units slowly then makes a rakghoul (cough*rancor with wampa skeleton*cough) spawn after they die. And it works like a buff.

So, how exactly do I do it?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: How do you set up LUA weapons?

Post by Maveritchell »

Darth_Squoobus wrote:I learned about something called a LUA weapon, which is a weapon that does something special because of a LUA workaround.
Just a clarification - "LUA weapon" is just a terminology; it's any weapon that is used to trigger a scripted event. It's not something specific or an actual type of weapon. If you want to make one, you'll need to know how to script what you want to happen and then you'll need to make a weapon that triggers that event.
Post Reply