changing units 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

Locked
yodasoda

changing units weapons

Post by yodasoda »

i need help onhow to change a units weapons, because i put anakins lightsaber in place of the republics clone troopers rifle, and i startup my map and it crashes.
and BTW, im changing the odf, i dunno if i should change anything else.

odf:
[GameObjectClass]
ClassParent = "rep_inf_default"


[Properties]
WEAPONSECTION = 1
WeaponName = "rep_weap_lightsaber_anakin"
WeaponAmmo = 0

WEAPONSECTION = 2
WeaponName = "rep_weap_inf_pistol"
WeaponAmmo = 0

WEAPONSECTION = 3
WeaponName = "rep_weap_inf_thermaldetonator"
WeaponAmmo = 4
WeaponChannel = 1

WEAPONSECTION = 4
WeaponName = "rep_weap_award_rifle"
WeaponAmmo = 4

WEAPONSECTION = 5
WeaponName = "rep_weap_award_pistol"
WeaponAmmo = 6

VOUnitType = 121
User avatar
Dohnutt
Hoth Battle Chief
Hoth Battle Chief
Posts: 3248
Joined: Sun Aug 20, 2006 9:25 am
Contact:

RE: changing units weapons

Post by Dohnutt »

For some reason, I remember seeing that you can only put a lightsaber as a secondary weapon on a soldier. I'm pretty sure I'm wrong though.
crazytieguy
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 306
Joined: Sun Jul 02, 2006 8:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Targeting your X-wing.

RE: changing units weapons

Post by crazytieguy »

Post your error log, then we can help.
User avatar
arty
Rebel Sergeant
Rebel Sergeant
Posts: 190
Joined: Tue Sep 12, 2006 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: changing units weapons

Post by arty »

Lol, If he has a lightsaber, how does he use it. You need to give him an animation.
fat_walrus

Post by fat_walrus »

Please use the search engine instead of flooding the board with questions that have been asked several times, it can be very annoying
-_-
Gametoast Staff
Gametoast Staff
Posts: 2678
Joined: Sat May 07, 2005 1:22 pm

Post by -_- »

*LOCKED*
Locked