Killing CPs

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:

Killing CPs

Post 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! :)
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: Killing CPs

Post 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.
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:

Re: Killing CPs

Post 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.
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: Killing CPs

Post by Grev »

Oh! Im not sure, but you can look through stock scripts and find a part about aftercompletionremoveobjective:bla.
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: Killing CPs

Post 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.
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:

Re: Killing CPs

Post 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.
Post Reply