Page 1 of 1

change heroes on a ground map

Posted: Fri Apr 21, 2006 11:31 am
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

RE: change heroes on a ground map

Posted: Fri Apr 21, 2006 11:36 am
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.

Posted: Fri Apr 21, 2006 11:44 am
by jano31coa
oh ok thank you very much it works now =)

silly me :roll: