Page 1 of 1
Killing CPs
Posted: Mon Apr 28, 2008 5:45 pm
by Master Fionwë
I figured out a way to solve one of the problems I've been having with my map, but I need help working it out. How could I set up my lua so that when a certain cp is captured by the player, it will be destroyed after 1 minute unless recaptured?
I don't mean like in Yavin 4: Sunken Temple, how the bomber came by and destroyed the cp in assault mode, but more like killing the cp, like with the Hoth Shield Generator cp or in a campaign.
Thanks in advance!

Re: Killing CPs
Posted: Mon Apr 28, 2008 7:23 pm
by Grev
Look throuh the hoth shield generator properties. I removed destructibility from the kashyyk oil refinery thing, so Im sure that the effect can be added to a cp.
Re: Killing CPs
Posted: Tue Apr 29, 2008 1:02 am
by Master Fionwë
Um, I get what you are thinking, but I mean more of a campaign, killing the cp after a certain objective has been fulfilled, in this case capturing the cp. And it would have to be captured by the player in order for it to be deactivated.
Re: Killing CPs
Posted: Tue Apr 29, 2008 7:29 am
by Grev
Oh! Im not sure, but you can look through stock scripts and find a part about aftercompletionremoveobjective:bla.
Re: Killing CPs
Posted: Tue Apr 29, 2008 11:02 am
by [RDH]Zerted
Master Fionwë wrote:...I mean more of a campaign, killing the cp after a certain objective has been fulfilled, in this case capturing the cp. And it would have to be captured by the player in order for it to be deactivated.
Then do just that.
Set the CP to be capturable only by human players.
Stick it in a Conquest objective by itself.
When that objective ends, disabled the CP's capture region and kill the CP object.
Re: Killing CPs
Posted: Tue Apr 29, 2008 5:42 pm
by Master Fionwë
[RDH]Zerted wrote:Master Fionwë wrote:...I mean more of a campaign, killing the cp after a certain objective has been fulfilled, in this case capturing the cp. And it would have to be captured by the player in order for it to be deactivated.
Then do just that.
Set the CP to be capturable only by human players.
Stick it in a Conquest objective by itself.
When that objective ends, disabled the CP's capture region and kill the CP object.
Um, that is the entire reason for my asking. I have a general idea how to do that, but I am not that good with scripts. Is there a campaign script in existance already that has that idea? And how do I make a cp capturable by only human players?
I feel really stupid asking these questions, but again, scripting is not my forte by any means.