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?
Ingame event question
Moderator: Moderators
-
Master Fionwë
- Rebel Colonel

- Posts: 598
- Joined: Wed May 30, 2007 3:33 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: At RCTC
- Contact:
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
RE: Ingame event question
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
--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

- Posts: 259
- Joined: Mon Jul 16, 2007 3:22 am
RE: Ingame event question
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
Um.. No, not exact.[RDH]Zerted wrote:(note: not exact code):
Maybe but most likly not.
He can't remember it all off the top of his head after all.
