Ingame event question

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
Master Fionwë
Rebel Colonel
Rebel Colonel
Posts: 598
Joined: Wed May 30, 2007 3:33 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: At RCTC
Contact:

Ingame event question

Post by Master Fionwë »

I have an idea for my map, but I don't know how to do it. I have three core ships in it, and I want to make it so that when each one is destroyed, the cis lose 100 reinforcements.
Could someone please tell me how to do this?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: Ingame event question

Post by [RDH]Zerted »

It would be something like (note: not exact code):

--if the killed ship is ship1, ship2, or ship3, remove 100 reinforcements from CIS
OnObjectKill( ship, killer )
if ship == nil then return end

if ship == ship1 || ship == ship2 || ship == ship3 then
AddReinforcements( <CIS team #>, -100 )
end
end
Last edited by [RDH]Zerted on Fri Aug 17, 2007 2:04 pm, edited 1 time in total.
1z2x3c
3rd Warning
3rd Warning
Posts: 259
Joined: Mon Jul 16, 2007 3:22 am

RE: Ingame event question

Post by 1z2x3c »

what would be the exact code
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: RE: Ingame event question

Post by Caleb1117 »

[RDH]Zerted wrote:(note: not exact code):
Um.. No, not exact.

Maybe but most likly not.
He can't remember it all off the top of his head after all. :P
Post Reply