Noob Questions

Post everything from general questions, to modding questions, to map WIPs to releases. (SWBF1 only)

Moderator: Moderators

Post Reply
sef0907

Noob Questions

Post by sef0907 »

1. How do you set memory pools for vechicles?
2. How do you add a local team to yuor map?
3. How do you make to local tem be an allie to the Republic? Like, not just going around and killing anybody.
4. How do you create lighing? Like, when you go near lava your guy has red shined on him.
-_-
Gametoast Staff
Gametoast Staff
Posts: 2678
Joined: Sat May 07, 2005 1:22 pm

Post by -_- »

1-3 reference to shipped lua's
4 region ambient lighting
Kaos66

Post by Kaos66 »

just copy this into ur republic lua file
o and where it shows the sile just put 8 ) but not spaced
and this doesnt help with lighting just some other stuff u asked and i used th wookies for this and for the locals say u put wookies u have to put WOK1Spawn under allypath and make a path called WOK1Spawn and just place it wherevr u want


--Level Stats
--start memorypools
ClearWalkers()
--ADD WOOKIES
ReadDataFile("SIDE\\wok.lvl",
"wok_inf_basic");
SetTeamName(3, "locals")
SetTeamIcon(3, "all_icon")
AddUnitClass(3, "wok_inf_mechanic", 2)
AddUnitClass(3, "wok_inf_rocketeer", 2)
AddUnitClass(3, "wok_inf_warrior", 3)
SetUnitCount(3, 7)
SetTeamAsEnemy(3,ATT)
SetTeamAsFriend(3,DEF)
SetTeamAsFriend(DEF,3)
SetTeamAsEnemy(ATT,3)
--DONE ADDING WOOKIES

ClearWalkers()
SetMemoryPoolSize("EntityWalker", 20)
AddWalkerType(0, 8) -- 8 droidekas (special case: 0 leg pairs)
AddWalkerType(2, 2) -- 2 spider walkers with 2 leg pairs each
AddWalkerType(3, 4) -- 4 attes with 3 leg pairs each
AddWalkerType(1, 4)
SetMemoryPoolSize("WalkerBlendUnit", 140)
SetMemoryPoolSize("CommandHover", 12)
SetMemoryPoolSize("CommandWalker", 12)
SetMemoryPoolSize("EntityHover", 20)
SetMemoryPoolSize("EntityFlyer", 20)
SetMemoryPoolSize("PowerupItem", 60)
SetMemoryPoolSize("EntityMine", 40)
SetSpawnDelay(10.0, 0.25)
--end memorypools [/u]
Post Reply