Page 1 of 1
Ingame event question
Posted: Tue Aug 14, 2007 10:11 am
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?
RE: Ingame event question
Posted: Fri Aug 17, 2007 1:48 pm
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
RE: Ingame event question
Posted: Fri Aug 17, 2007 1:51 pm
by 1z2x3c
what would be the exact code
Re: RE: Ingame event question
Posted: Fri Aug 17, 2007 1:55 pm
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.
