change heroes on a ground map

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
jano31coa

change heroes on a ground map

Post by jano31coa »

Hi,
I've searched for the answer to my question, but I didn't find it ; so if there already was a topic about this I missed, please let me know


I've created a map :
http://www.gametoast.com/index.php?name ... pic&t=4956

and I'd like to change the heroes ?

I opened the file "my map's 3 letters"g_con.lua with notepad
I've replaced SetHeroClass(ALL, "all_hero_hansolo_tat") with SetHeroClass(ALL, "all_hero_luke_pilot")

and then when I run the map, I can't get any heroes with the alliance ?


what should I do to make it work ?

thanks

John
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

RE: change heroes on a ground map

Post by Teancum »

You need to also change it in the ReadDataFile("SIDE\\ALL.lvl section. The ReadDataFile tells the game to load him into memory, the SetHeroClass makes him playable.
jano31coa

Post by jano31coa »

oh ok thank you very much it works now =)

silly me :roll:
Post Reply