My First Post: Wookie help

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
skywalker
Posts: 3
Joined: Wed Jan 22, 2014 5:41 pm
Projects :: No Mod project currently.
Games I'm Playing :: SWBII
xbox live or psn: No gamertag set
Location: Under your bed

My First Post: Wookie help

Post by skywalker »

Hello. I need help with a problem. I have been making my map and I have an area were I don't want my wookies to spawn. I put some codes in my lua before so I was wondering if there is some code that I can put in my lua to kill the wookies when they spawn at cp5, or a code that will make them unable to spawn at cp5 :runaway: ? Can some one PLEASE help :shock:
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: My First Post: Wookie help

Post by Kingpin »

Are the wookies locals or are they playable on a team? (like the wookies on the Rebel Alliance)
skywalker
Posts: 3
Joined: Wed Jan 22, 2014 5:41 pm
Projects :: No Mod project currently.
Games I'm Playing :: SWBII
xbox live or psn: No gamertag set
Location: Under your bed

Re: My First Post: Wookie help

Post by skywalker »

They are the wookies that are under the "all" team, so I guess they are part of the Rebel Alliance. (They just came with my yavin map)
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

Re: My First Post: Wookie help

Post by Lorul1 »

okay
are you trying to do something like this ?
forums/viewtopic.php?f=27&t=29648
skywalker
Posts: 3
Joined: Wed Jan 22, 2014 5:41 pm
Projects :: No Mod project currently.
Games I'm Playing :: SWBII
xbox live or psn: No gamertag set
Location: Under your bed

Re: My First Post: Wookie help

Post by skywalker »

yep that's what I want but there is a problem I inserted the code at the end of your post into my lua and it didn't work. :runaway:
Hidden/Spoiler:
[code]conquest:Start()

timeoutTimer = CreateTimer("timeout")
SetTimerValue(timeoutTimer, 10)

OnTimerElapse(
function(timer)
MissionVictory(REP)
ShowTimer(nil)
DestroyTimer(timer)
end,
timeoutTimer
)

OnObjectKill(
function(object, killer)
if GetEntityName(object) == "myg1_bldg_energy_collector_core" then
PlayAnimation("final")
PlayAnimation("fallfire")
StartTimer(timeoutTimer)
ShowTimer(timeoutTimer)
end
end
)

OnCharacterSpawn(
function(character)
if GetCharacterClass(character) == "jed_knight_03" then
checkJediRegion()
end
end
)


--put this after ScriptPostLoad() but before ScriptInit()
checkJediRegion()
OnEnterRegion(
function(region, player)
if IsCharacterHuman(player) then
print("Do nothing because jedi is human")
elseif GetCharacterClass(player) == "jed_knight_03" then
KillObject(player)
end
end,
"Kill01"
)
end[/code]

can someone please help :cry:
Post Reply